diff --git a/.github/workflows/auto-pr.yml b/.github/workflows/auto-pr.yml new file mode 100644 index 0000000000..1446c0365b --- /dev/null +++ b/.github/workflows/auto-pr.yml @@ -0,0 +1,24 @@ +name: Merge branch rel-4.1 with rel-4.0 +on: + push: + branches: + - rel-4.0 +jobs: + merge-rel-4-1-with-rel-4-0: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + with: + ref: rel-4.1 + - name: Reset promotion branch + run: | + git fetch origin rel-4.0:rel-4.0 + git reset --hard rel-4.0 + - name: Create Pull Request + uses: peter-evans/create-pull-request@v3 + with: + branch: auto-rel-4-0-merge-pr-${{github.run_number}} + title: Merge branch rel-4.1 with ${{github.ref}} + body: This PR generated automatically to merge rel-4.1 with rel-4.0. Please review the changed files before merging to prevent any errors that may occur. + reviewers: ${{github.actor}} + token: ${{ github.token }}