Skip to content

Commit ab525e9

Browse files
committed
build(ci): improve Dependabot PR handling and expand codecov to release branches
- Add label for Dependabot PRs before auto-merging - Update codecov workflow to run on release branches
1 parent 2bdbcdc commit ab525e9

File tree

2 files changed

+12
-1
lines changed

2 files changed

+12
-1
lines changed

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

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,22 @@ jobs:
2020
with:
2121
github-token: "${{ secrets.GITHUB_TOKEN }}"
2222

23-
- name: Enable auto-merge for Dependabot PRs
23+
24+
- name: Add label for Dependabot PRs
2425
# Automatically merge the following dependency upgrades:
2526
# https://docs.github.com/code-security/dependabot/dependabot-version-updates/configuration-options-for-the-dependabot.yml-file#ignore
2627
if: steps.metadata.outputs.update-type == 'version-update:semver-minor' || steps.metadata.outputs.update-type == 'version-update:semver-patch'
2728
run: |
2829
gh pr edit "$PR_URL" --add-label "dependencies"
30+
env:
31+
PR_URL: ${{github.event.pull_request.html_url}}
32+
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
33+
34+
- name: Enable auto-merge for Dependabot PRs
35+
# Automatically merge the following dependency upgrades:
36+
# https://docs.github.com/code-security/dependabot/dependabot-version-updates/configuration-options-for-the-dependabot.yml-file#ignore
37+
if: steps.metadata.outputs.update-type == 'version-update:semver-minor' || steps.metadata.outputs.update-type == 'version-update:semver-patch'
38+
run: |
2939
gh pr merge --auto --merge '${{ github.event.pull_request.html_url }}'
3040
env:
3141
PR_URL: ${{github.event.pull_request.html_url}}

.github/workflows/golang-codecov.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ on:
88
- '**/README.md'
99
branches:
1010
# - 'main'
11+
- 'release-*'
1112
pull_request:
1213
paths-ignore:
1314
- '**/README.md'

0 commit comments

Comments
 (0)