Upstream Sync #1894
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: Upstream Sync | |
on: | |
schedule: | |
- cron: '*/15 * * * *' # Run every 15 minutes | |
workflow_dispatch: # Allows manual triggering as well | |
jobs: | |
sync: | |
runs-on: ubuntu-latest | |
if: github.ref == 'refs/heads/main' # Only run on the 'main' branch | |
steps: | |
- name: Checkout Code | |
uses: actions/checkout@v3 | |
with: | |
persist-credentials: false | |
fetch-depth: 0 | |
- name: Sync fork with upstream | |
uses: aormsby/[email protected] | |
with: | |
target_sync_branch: main | |
target_repo_token: ${{ secrets.GITHUB_TOKEN }} | |
# ... (the rest of your configuration options, if any) |