Skip to content

Sync with upstream repository #25

Sync with upstream repository

Sync with upstream repository #25

Workflow file for this run

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
with:
token: ${{ secrets.REPO_BOT_ACCESS_TOKEN }}
- 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