diff --git a/.github/workflows/upstream.yml b/.github/workflows/upstream.yml new file mode 100644 index 0000000000..38b5abd32b --- /dev/null +++ b/.github/workflows/upstream.yml @@ -0,0 +1,32 @@ +on: + schedule: + - cron: '0 */5 * * *' + workflow_dispatch: + +permissions: write-all + +jobs: + push_upstream: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - run: git fetch -a origin --unshallow || true + - run: git config user.name "GitHub Actions Bot" + - run: git config user.email "" + - run: git checkout ci + - run: git remote add upstream -f https://gitlab.com/qemu-project/qemu + - run: git rebase upstream/master + - run: git push -f --set-upstream origin "ci:upstream" + + keepalive-job: + name: Keepalive Workflow + if: ${{ always() }} + needs: push_upstream + runs-on: ubuntu-latest + permissions: + contents: write + steps: + - uses: actions/checkout@v4 + - uses: gautamkrishnar/keepalive-workflow@v2 + with: + use_api: false