diff --git a/.github/workflows/README.md b/.github/workflows/README.md new file mode 100644 index 000000000000..0a552957aacb --- /dev/null +++ b/.github/workflows/README.md @@ -0,0 +1,4 @@ +# Workflow +## auto-merge +This workflow is triggered hourly to auto-merge `HEAD` to `BASE` (now `branch-0.2` to `branch-0.3`). +If auto-merge PR is unable to be merged due to conflicts, it will remain open until being manually fixed. diff --git a/.github/workflows/auto-merge.yml b/.github/workflows/auto-merge.yml new file mode 100644 index 000000000000..43f3a33f08f9 --- /dev/null +++ b/.github/workflows/auto-merge.yml @@ -0,0 +1,20 @@ +# A workflow to keep BASE branch up-to-date from HEAD branch +name: auto-merge HEAD to BASE + +on: + schedule: + - cron: '0 * * * *' # hourly + +jobs: + auto-merge: + runs-on: ubuntu-latest + steps: + - name: auto-merge job + if: ${{ github.ref == 'refs/heads/branch-0.2' }} # make sure this workflow would not be triggered by other refs + uses: docker://pxli/automerge:latest # https://gitlab-master.nvidia.com/peixinl/automerge + env: + OWNER: NVIDIA + REPO_NAME: spark-rapids + HEAD: branch-0.2 + BASE: branch-0.3 + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}