Skip to content

Commit

Permalink
[Add] ✨ Github Action Auto Sync from Upstream
Browse files Browse the repository at this point in the history
  • Loading branch information
Harry-zklcdc committed Mar 9, 2024
1 parent c2e5ff5 commit 861c16d
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/sync-upstream.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Upstream Sync
on:
schedule:
- cron: '0 16 * * *'
workflow_dispatch:

jobs:
sync_upstream:
name: Upstream Sync
runs-on: ubuntu-latest
if: github.repository != 'Harry-zklcdc/go-proxy-bingai'
steps:
- name: Checkout
uses: actions/checkout@v2
with:
ref: master
- name: Sync upstream changes
id: sync
uses: aormsby/[email protected]
with:
upstream_sync_repo: Harry-zklcdc/go-proxy-bingai
upstream_sync_branch: master
target_sync_branch: master
target_repo_token: ${{ secrets.GITHUB_TOKEN }} # automatically generated, no need to set
test_mode: false

0 comments on commit 861c16d

Please sign in to comment.