From 3d55b734b44a1eae205b0356d383b6d934cefb22 Mon Sep 17 00:00:00 2001 From: seth Date: Sat, 7 Oct 2023 11:09:25 -0400 Subject: actions: init staging-automerge --- .github/workflows/staging-automerge.yaml | 34 ++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 .github/workflows/staging-automerge.yaml (limited to '.github/workflows') diff --git a/.github/workflows/staging-automerge.yaml b/.github/workflows/staging-automerge.yaml new file mode 100644 index 0000000..70aa4c4 --- /dev/null +++ b/.github/workflows/staging-automerge.yaml @@ -0,0 +1,34 @@ +name: auto-merge staging + +on: + push: + branches: ["staging"] + workflow_dispatch: + +permissions: + contents: write + pull-requests: write + +jobs: + automerge: + runs-on: ubuntu-latest + + steps: + - name: create-pr + id: pr + run: | + { + echo 'PR< main" \ + --fill + echo EOF + } >> "$GITHUB_ENV" + + - name: enable auto-merge + run: gh pr merge --auto --rebase "$PR" + env: + GITHUB_TOKEN: ${{ github.token }} -- cgit v1.2.3