Skip to content

Commit da2ac8e

Browse files
committed
ci(dependabot): enable auto-merge workflow
1 parent 0e5cb04 commit da2ac8e

1 file changed

Lines changed: 25 additions & 0 deletions

File tree

.github/workflows/build.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,10 @@ jobs:
7575
run: env | sort
7676

7777

78+
- name: "Show: Bash version"
79+
run: bash --version
80+
81+
7882
- name: Git Checkout
7983
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
8084

@@ -156,6 +160,27 @@ jobs:
156160
DOCKER_PUSH_GHCR: ${{ steps.docker_push_actions.outputs.DOCKER_PUSH_GHCR }}
157161

158162

163+
###########################################################
164+
dependabot-pr-auto-merge:
165+
###########################################################
166+
needs: [build]
167+
# The PR author remains stable when a maintainer reruns a Dependabot workflow.
168+
if: >-
169+
${{
170+
github.event_name == 'pull_request' &&
171+
github.event.pull_request.user.login == 'dependabot[bot]'
172+
}}
173+
174+
permissions:
175+
contents: write
176+
pull-requests: write
177+
178+
uses: sebthom/gha-shared/.github/workflows/reusable.dependabot-auto-merge.yml@v1
179+
with:
180+
package-ecosystems: '["github-actions"]'
181+
merge-major-updates: true
182+
183+
159184
###########################################################
160185
delete-untagged-images:
161186
###########################################################

0 commit comments

Comments
 (0)