Skip to content

Commit aec43a1

Browse files
authored
Label bot PRs skip-changelog (#487)
1 parent 9ff3b68 commit aec43a1

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

.github/workflows/dependabot-auto-merge.yml

+7-3
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,15 @@ jobs:
1414
runs-on: ubuntu-latest
1515
if: ${{ github.event.pull_request.user.login == 'dependabot[bot]' || github.event.pull_request.user.login == 'pre-commit-ci[bot]' }}
1616
steps:
17+
- name: Label bot PRs
18+
run: gh pr edit --add-label "ci,skip-changelog" ${{ github.event.pull_request.html_url }}
19+
env:
20+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
21+
1722
- name: Auto-approve
1823
uses: hmarr/auto-approve-action@v4
1924

2025
- name: Enable auto-merge
21-
run: gh pr merge --auto --squash "$PR_URL"
26+
run: gh pr merge --auto --squash ${{ github.event.pull_request.html_url }}
2227
env:
23-
PR_URL: ${{github.event.pull_request.html_url}}
24-
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
28+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)