Sync with upstream repository #16
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
on: | |
workflow_dispatch: | |
schedule: | |
- cron: 0 1 * * * | |
name: "Sync with upstream repository" | |
jobs: | |
sync: | |
name: Get Updates from Upstream | |
if: ${{ github.repository != 'NVIDIA/cudaqx' }} | |
permissions: | |
actions: write | |
contents: write | |
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 |