Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sync workflow #2015

Open
wants to merge 6 commits into
base: master
Choose a base branch
from
Open

Sync workflow #2015

wants to merge 6 commits into from

Conversation

95256155o
Copy link

新增GitHub Actions同步分 sync.yml
触发条件:

  • 每天运行一次(通过定时任务)
  • 手动触发

主要步骤:

检出代码:从上游仓库检出代码。
备份文件:备份 .github/workflows/sync.yml 文件,以确保同步过程中不会丢失该文件。
同步上游仓库:添加上游仓库远程地址,获取上游更新,并进行 rebase 操作以同步更改。
恢复文件:从临时目录恢复 .github/workflows/sync.yml 文件。
推送更改:推送同步后的更改到 fork 仓库的 master 分支。

使用方法:

配置 GitHub Secrets:在仓库的 Secrets 设置中添加 GITHUB_TOKEN。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant