From 15f274e6624f53ffee881ee5976a04911264626d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Eric=20Dub=C3=A9?= Date: Mon, 22 Apr 2024 19:06:59 -0400 Subject: [PATCH] Create main.yml --- .github/workflows/main.yml | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 .github/workflows/main.yml diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 0000000000..80081b44b3 --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,32 @@ +name: Maintain Release Merge PR + +on: + push: + branches: + - main + +jobs: + update-release-pr: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - name: Setup Git + run: | + git config user.name github-actions + git config user.email github-actions@github.com + - name: Check for existing PR + id: find-pr + uses: juliangruber/find-pull-request-action@v1 + with: + github-token: ${{ secrets.GITHUB_TOKEN }} + branch: release + - name: Create/Update PR + if: steps.find-pr.outputs.number == '' + uses: peter-evans/create-pull-request@v6 + with: + token: ${{ secrets.GITHUB_TOKEN }} + commit-message: Update release branch + title: Merge Release Auto-PR + body: Merging this PR will invoke release actions + base: release + branch: auto-update/release