Skip to content

Commit

Permalink
Added a workflow to sync upstream.
Browse files Browse the repository at this point in the history
  • Loading branch information
shenhanc78 committed Jan 8, 2025
1 parent 75781fa commit 6c5358f
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/sync-fork-parent.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
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/checkout@v4.2.2
with:
repository: 'shenhanc78/llvm-project'
ref: 'main'
fetch-depth: 0 # fetch all history for accurate syncing
- name: Sync with upstream
uses: zhangnew/sync-upstream@v2
with:
username: 'Han Shen'
useremail: 'shenhan@google.com'
upstream: 'llvm/llvm-project'
upstream-branch: 'main'
branch: 'main'
token: ${{ secrets.WORKFLOW_TOKEN }}

0 comments on commit 6c5358f

Please sign in to comment.