-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
21 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
name: Sync to Remote Repository | ||
|
||
on: | ||
push: | ||
branches: | ||
- main # 或者你的默认分支名称 | ||
|
||
jobs: | ||
sync: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout source repository | ||
uses: actions/checkout@v2 | ||
|
||
- name: Push to remote repository | ||
uses: ad-m/github-push-action@main | ||
with: | ||
github_token: ${{ secrets.GITHUB_TOKEN }} | ||
remote_repo: ${{ secrets.GIT_REPO_URL}} # 你的远程仓库URL | ||
force: true # 使用 "true" 强制推送(当你想要你的变化覆盖远程仓库时) | ||
tags: true # 也推送tags |