Skip to content

Commit f69a28d

Browse files
committed
[INTERNAL] dependabot auto-merge: fix workflow
JIRA: CPOUI5FOUNDATION-717
1 parent 5831256 commit f69a28d

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

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

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,15 +11,17 @@ permissions:
1111
jobs:
1212
dependabot:
1313
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 }}
1515
steps:
1616
- name: Dependabot metadata
1717
id: metadata
1818
uses: dependabot/fetch-metadata@v1
1919
with:
2020
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)
2325
run: gh pr review --approve "$PR_URL" && gh pr merge --auto --rebase "$PR_URL"
2426
env:
2527
PR_URL: ${{github.event.pull_request.html_url}}

0 commit comments

Comments
 (0)