Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
新增GitHub Actions同步分 sync.yml
触发条件:
主要步骤:
检出代码:从上游仓库检出代码。
备份文件:备份 .github/workflows/sync.yml 文件,以确保同步过程中不会丢失该文件。
同步上游仓库:添加上游仓库远程地址,获取上游更新,并进行 rebase 操作以同步更改。
恢复文件:从临时目录恢复 .github/workflows/sync.yml 文件。
推送更改:推送同步后的更改到 fork 仓库的 master 分支。
使用方法:
配置 GitHub Secrets:在仓库的 Secrets 设置中添加 GITHUB_TOKEN。