Skip to content

Commit

Permalink
Add workflow to sync with upstream repo
Browse files Browse the repository at this point in the history
  • Loading branch information
bmhowe23 committed Dec 5, 2024
1 parent 233e2b2 commit 622f4b4
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/sync.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
on:
workflow_dispatch:
schedule:
- cron: 0 1 * * *

name: "Sync with upstream repository"

jobs:
sync:
name: Get Updates from Upstream
if: ${{ github.repository != 'NVIDIA/cudaqx' }}
runs-on: 'ubuntu-latest'

steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Fast-forward ${{ github.ref_name }}
run: |
git config --global user.email "[email protected]"
git config --global user.name "GitHub Action"
git remote add upstream https://github.com/NVIDIA/cudaqx
git pull --ff-only upstream ${{ github.ref_name }}
git push origin

0 comments on commit 622f4b4

Please sign in to comment.