Skip to content

Commit f89901a

Browse files
committed
Enable auto-merge for dependabot
Enable auto-merge for dependabot
1 parent bcaa9c5 commit f89901a

File tree

1 file changed

+16
-16
lines changed

1 file changed

+16
-16
lines changed

.github/workflows/dependabot-automation.yml

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -24,19 +24,19 @@ jobs:
2424
PR_URL: ${{github.event.pull_request.html_url}}
2525
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
2626

27-
# dependabot-auto-merge:
28-
# runs-on: ubuntu-latest
29-
# if: ${{ github.actor == 'dependabot[bot]' }}
30-
# steps:
31-
# - name: Retrieve Dependabot metadata
32-
# id: metadata
33-
# uses: dependabot/fetch-metadata@v2
34-
# with:
35-
# github-token: "${{ secrets.GITHUB_TOKEN }}"
36-
#
37-
# - name: Auto-merge Pull Request
38-
# if: ${{steps.metadata.outputs.update-type != 'version-update:semver-major'}}
39-
# run: gh pr merge --auto --merge "$PR_URL"
40-
# env:
41-
# PR_URL: ${{github.event.pull_request.html_url}}
42-
# GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
27+
dependabot-auto-merge:
28+
runs-on: ubuntu-latest
29+
if: ${{ github.actor == 'dependabot[bot]' }}
30+
steps:
31+
- name: Retrieve Dependabot metadata
32+
id: metadata
33+
uses: dependabot/fetch-metadata@v2
34+
with:
35+
github-token: "${{ secrets.GITHUB_TOKEN }}"
36+
37+
- name: Auto-merge Pull Request
38+
if: ${{steps.metadata.outputs.update-type != 'version-update:semver-major'}}
39+
run: gh pr merge --auto --merge "$PR_URL"
40+
env:
41+
PR_URL: ${{github.event.pull_request.html_url}}
42+
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}

0 commit comments

Comments
 (0)