File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -11,15 +11,17 @@ permissions:
11
11
jobs :
12
12
dependabot :
13
13
runs-on : ubuntu-latest
14
- if : ${{ github.actor == 'dependabot[bot]' && contains( github.event.pull_request.labels.*.name, 'github_actions') }}
14
+ if : ${{ github.actor == 'dependabot[bot]' && github.event.pull_request.auto_merge == null }}
15
15
steps :
16
16
- name : Dependabot metadata
17
17
id : metadata
18
18
uses : dependabot/fetch-metadata@v1
19
19
with :
20
20
github-token : " ${{ secrets.GITHUB_TOKEN }}"
21
- - name : Enable auto-merge for Dependabot PRs
22
- if : ${{ contains(fromJSON('["version-update:semver-minor", "version-update:semver-patch"]'), steps.metadata.outputs.update-type) }}
21
+ - name : Approve and auto-merge PRs for minor/patch updates of github-actions
22
+ if : |
23
+ steps.metadata.outputs.package-ecosystem == 'github_actions' &&
24
+ contains(fromJSON('["version-update:semver-minor", "version-update:semver-patch"]'), steps.metadata.outputs.update-type)
23
25
run : gh pr review --approve "$PR_URL" && gh pr merge --auto --rebase "$PR_URL"
24
26
env :
25
27
PR_URL : ${{github.event.pull_request.html_url}}
You can’t perform that action at this time.
0 commit comments