fix: workflow #3
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
name: 'Sync Fork with Upstream' | |
on: | |
push: # This triggers the action whenever you push to the repository | |
branches: | |
- main | |
jobs: | |
sync_with_upstream: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout the forked repo | |
uses: actions/checkout@v2 | |
with: | |
ref: main | |
- name: Sync from upstream | |
uses: aormsby/[email protected] | |
with: | |
upstream_sync_repo: kongtaoxing/nftwarper # Replace with the original repo's owner and name | |
upstream_sync_branch: main # Replace with the upstream branch name | |
target_sync_branch: main # Your target branch to sync (usually 'main') | |
target_repo_token: ${{ secrets.GITHUB_TOKEN }} # automatically generated, no need to set |