forked from adams549659584/go-proxy-bingai
-
Notifications
You must be signed in to change notification settings - Fork 6.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Add] ✨ Github Action Auto Sync from Upstream
- Loading branch information
1 parent
c2e5ff5
commit 861c16d
Showing
1 changed file
with
25 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,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 |