Skip to content

Commit

Permalink
Add a auto-sync workflow.
Browse files Browse the repository at this point in the history
  • Loading branch information
shenhanc78 committed Jan 7, 2025
1 parent c6f67b8 commit b20d71d
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/sync-fork-parent.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Sync with upstream

on:
schedule:
- cron: '1 1 * * *'
workflow_dispatch: # for manual triggering

jobs:
sync:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/[email protected]
with:
repository: 'shenhanc78/llvm-project'
ref: 'main'
fetch-depth: 0 # fetch all history for accurate syncing
- name: Sync with upstream
uses: zhangnew/sync-upstream@v1
with:
username: 'Han Shen'
useremail: '[email protected]'
upstream: 'llvm/llvm-project'
upstream-branch: 'main'
branch: 'main'

0 comments on commit b20d71d

Please sign in to comment.