From 61828943c75c26afbc91ecafcf7c4798a9ba6ab6 Mon Sep 17 00:00:00 2001 From: Fabiana Campanari Date: Tue, 13 Aug 2024 19:06:31 -0300 Subject: [PATCH] Create dependantbot-auto-merge.yml Signed-off-by: Fabiana Campanari --- .github/dependantbot-auto-merge.yml | 32 +++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 .github/dependantbot-auto-merge.yml diff --git a/.github/dependantbot-auto-merge.yml b/.github/dependantbot-auto-merge.yml new file mode 100644 index 0000000..61b7523 --- /dev/null +++ b/.github/dependantbot-auto-merge.yml @@ -0,0 +1,32 @@ + +name: 'Dependabot Automerge - Action' + +on: + pull_request: + +permissions: + pull-requests: write + issues: write + +jobs: + worker: + runs-on: ubuntu-latest + + if: github.actor == 'dependabot[bot]' + steps: + - name: 'Wait for status checks' + id: waitforstatuschecks + uses: WyriHaximus/github-action-wait-for-status@v1.2.0 + with: + ignoreActions: worker,WIP + checkInterval: 60 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + + - name: 'Automerge' + uses: pascalgn/automerge-action@v0.11.0 + if: steps.waitforstatuschecks.outputs.status == 'success' + env: + MERGE_LABELS: '' + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + MERGE_DELETE_BRANCH: true