From fcb913f3889ba3c164c534161b40ce6336b6a545 Mon Sep 17 00:00:00 2001 From: Marco Carvalho Date: Wed, 10 Jul 2024 13:22:10 -0300 Subject: [PATCH] Create dependabot_auto_merge.yml --- .github/workflows/dependabot_auto_merge.yml | 30 +++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 .github/workflows/dependabot_auto_merge.yml diff --git a/.github/workflows/dependabot_auto_merge.yml b/.github/workflows/dependabot_auto_merge.yml new file mode 100644 index 00000000..627fb309 --- /dev/null +++ b/.github/workflows/dependabot_auto_merge.yml @@ -0,0 +1,30 @@ +name: Dependabot auto-merge + +on: pull_request + +permissions: + contents: write + pull-requests: write + +jobs: + dependabot: + runs-on: ubuntu-latest + if: github.actor == 'dependabot[bot]' + steps: + - uses: actions/checkout@v3 + + - uses: actions/setup-node@v3 + + - run: yarn install + + - run: yarn build + + - id: metadata + uses: dependabot/fetch-metadata@v2 + with: + github-token: "${{ secrets.GITHUB_TOKEN }}" + + - run: gh pr merge --auto --merge "$PR_URL" + env: + PR_URL: ${{github.event.pull_request.html_url}} + GH_TOKEN: ${{secrets.GITHUB_TOKEN}}