Skip to content

Commit 1fa4886

Browse files
committed
Refactor auto-approve workflow conditions for Dependabot updates
1 parent 4066d8a commit 1fa4886

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,14 @@ permissions:
1010
jobs:
1111
auto-approve:
1212
runs-on: ubuntu-latest
13-
if: github.actor == 'dependabot[bot]'
1413
steps:
1514
- name: Fetch Dependabot metadata
1615
id: metadata
16+
continue-on-error: true
1717
uses: dependabot/fetch-metadata@21025c705c08248db411dc16f3619e6b5f9ea21a
1818

1919
- name: Auto-approve minor and patch updates
20-
if: contains(fromJSON('["version-update:semver-minor", "version-update:semver-patch"]'), steps.metadata.outputs.update-type)
20+
if: steps.metadata.outcome == 'success' && contains(fromJSON('["version-update:semver-minor", "version-update:semver-patch"]'), steps.metadata.outputs.update-type)
2121
uses: hmarr/auto-approve-action@f0939ea97e9205ef24d872e76833fa908a770363
2222
with:
2323
github-token: ${{ github.token }}

0 commit comments

Comments
 (0)