Skip to content

Commit

Permalink
Update sync.md
Browse files Browse the repository at this point in the history
fix:sync.md-Time zone
  • Loading branch information
WongLoki authored Feb 27, 2024
1 parent 4d726cd commit e2dcc5b
Showing 1 changed file with 12 additions and 11 deletions.
23 changes: 12 additions & 11 deletions docs/sync.md
Original file line number Diff line number Diff line change
@@ -1,19 +1,20 @@
# 如何保持 fork 的代码最新
# How to keep the forked code up to date

## 自动更新
> 如果你遇到了 Upstream Sync 执行错误,请手动 Sync Fork 一次!
## Automatic update
> If you encounter an Upstream Sync execution error, please manually Sync Fork once!
After you fork the project, due to Github's restrictions, you need to manually go to the Actions page of your forked project to enable Workflows and enable Upstream Sync Action. After enabling it, you can start automatic daily scheduled updates.

当你 fork 项目之后,由于 Github 的限制,需要手动去你 fork 后的项目的 Actions 页面启用 Workflows,并启用 Upstream Sync Action,启用之后即可开启每天时定时自动更新:

1. 点击进入 Action Tab
2. 点击绿色 “I understand my workflows, go ahead and enable them” 按钮,启用 Workflows
3. 点击 Upstream Sync Enable workflow 按钮,启用 Upstream Sync Action
1. Click to enter Action Tab
2. Click on the green. “I understand my workflows, go ahead and enable them” Button, enable Workflows
3. Click Upstream Sync Enable workflow Button, enable Upstream Sync Action

启用之后,你 fork 的项目会在每天的 00:00 自动更新代码。
After enabling, the project you fork will automatically update the code daily at 00:00 UTC.


## 手动更新代码
如果你想让手动立即更新,可以查看 [Github 的文档](https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/working-with-forks/syncing-a-fork) 了解如何让 fork 的项目与上游代码同步。
## Manually update code
If you want to manually update immediately, you can check. [Documentation of Github](https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/working-with-forks/syncing-a-fork) Learn how to synchronize the forked project with the upstream code.

你可以 star/watch 本项目或者 follow 作者来及时获得新功能更新通知。

You can star/watch this project or follow the author to receive timely notifications of new feature updates.

0 comments on commit e2dcc5b

Please sign in to comment.