From 617eecdf3a2644c163b42cd0f96075acf03bdbb6 Mon Sep 17 00:00:00 2001 From: Falk Scheerschmidt Date: Thu, 1 Feb 2024 13:53:30 +0100 Subject: [PATCH] Add Auto Merge Workflow --- .github/workflows/auto-merge.yml | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 .github/workflows/auto-merge.yml diff --git a/.github/workflows/auto-merge.yml b/.github/workflows/auto-merge.yml new file mode 100644 index 0000000..96996a9 --- /dev/null +++ b/.github/workflows/auto-merge.yml @@ -0,0 +1,23 @@ +name: Dependabot + +on: + pull_request: + +jobs: + auto-merge: + name: Auto Merge + runs-on: ubuntu-22.04 + if: github.actor == 'dependabot[bot]' + steps: + - name: Get App Token + uses: tibdex/github-app-token@v2.1.0 + id: get_token + with: + app_id: ${{ vars.STAFFBASE_ACTIONS_APP_ID }} + private_key: ${{ secrets.STAFFBASE_ACTIONS_PRIVATE_KEY }} + + - name: Merge PR + run: | + gh pr merge ${{ github.event.pull_request.html_url }} --merge --admin + env: + GITHUB_TOKEN: ${{ steps.get_token.outputs.token }}