From 31ff6a63bee9823abc195ad392783b0a7e9c058b Mon Sep 17 00:00:00 2001 From: na2na-p Date: Fri, 8 Dec 2023 20:45:43 +0900 Subject: [PATCH] Add enable auto-merge by workflow --- .github/workflows/enable-auto-merge.yml | 29 +++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 .github/workflows/enable-auto-merge.yml diff --git a/.github/workflows/enable-auto-merge.yml b/.github/workflows/enable-auto-merge.yml new file mode 100644 index 00000000..306ea23a --- /dev/null +++ b/.github/workflows/enable-auto-merge.yml @@ -0,0 +1,29 @@ +name: Enable auto merge +on: + pull_request: + types: + - opened + - reopened + - ready_for_review + branches: + - main + - v3 + +jobs: + enable-auto-merge: + if: github.event.pull_request.draft == false + runs-on: ubuntu-latest + steps: + - name: Checkout repository + uses: actions/checkout@v4.1.1 + - name: Generate github token + id: generate_token + uses: tibdex/github-app-token@v2.1.0 + with: + app_id: ${{ secrets.APP_ID }} + private_key: ${{ secrets.PRIVATE_KEY }} + env: + OPENSSL_CONF: /dev/null + - uses: alexwilson/enable-github-automerge-action@main + with: + github-token: ${{ steps.generate_token.outputs.token }}