Skip to content

Commit

Permalink
Create sync.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
zreren authored Apr 3, 2024
1 parent e0215d8 commit 5f97539
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions .github/workflows/main.yml
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

0 comments on commit 5f97539

Please sign in to comment.