ci: dependatbot auto-merge

This commit is contained in:
Ruben Fiszel
2022-07-05 03:55:05 +02:00
parent c35b8cbb0a
commit 7208636de8
2 changed files with 7 additions and 6 deletions
+1 -1
View File
@@ -1 +1 @@
* @rubenfiszel
* @rubenfiszel @github-actions
+6 -5
View File
@@ -16,13 +16,14 @@ jobs:
uses: dependabot/fetch-metadata@v1.1.1
with:
github-token: "${{ secrets.GITHUB_TOKEN }}"
- uses: hmarr/auto-approve-action@v2
if: github.actor == 'dependabot[bot]'
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
- name: Approve a PR
run: gh pr review --approve "$PR_URL"
env:
PR_URL: ${{github.event.pull_request.html_url}}
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
- name: Enable auto-merge for Dependabot PRs
if: steps.metadata.outputs.update-type == 'version-update:semver-patch' || steps.metadata.outputs.update-type == 'version-update:semver-minor'
run: gh pr merge --auto --squash "$PR_URL"
env:
PR_URL: ${{github.event.pull_request.html_url}}
GITHUB_TOKEN: ${{secrets.PAT_TOKEN}}
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}