Skip to content

Commit 7a08403

Browse files
committed
Add workflow to sync with upstream repo
Signed-off-by: Ben Howe <[email protected]>
1 parent 233e2b2 commit 7a08403

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

.github/workflows/sync.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
on:
2+
workflow_dispatch:
3+
schedule:
4+
- cron: 0 1 * * *
5+
6+
name: "Sync with upstream repository"
7+
8+
jobs:
9+
sync:
10+
name: Get Updates from Upstream
11+
if: ${{ github.repository != 'NVIDIA/cudaqx' }}
12+
runs-on: 'ubuntu-latest'
13+
14+
steps:
15+
- name: Checkout repository
16+
uses: actions/checkout@v4
17+
18+
- name: Fast-forward ${{ github.ref_name }}
19+
run: |
20+
git config --global user.email "[email protected]"
21+
git config --global user.name "GitHub Action"
22+
git remote add upstream https://github.com/NVIDIA/cudaqx
23+
git pull --ff-only upstream ${{ github.ref_name }}
24+
git push origin

0 commit comments

Comments
 (0)