Skip to content

Commit 40b3385

Browse files
committed
Refine Dependabot auto-approve workflow configuration
1 parent 12aae67 commit 40b3385

1 file changed

Lines changed: 4 additions & 5 deletions

File tree

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

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
name: Dependabot Auto-Approve
22

33
on:
4-
pull_request_target
4+
pull_request_target:
5+
types: [opened, reopened, synchronize]
56

67
permissions:
78
pull-requests: write
@@ -16,9 +17,7 @@ jobs:
1617
uses: dependabot/fetch-metadata@v2
1718

1819
- name: Auto-approve minor and patch updates
19-
if: |
20-
steps.metadata.outputs.update-type == 'version-update:semver-minor' ||
21-
steps.metadata.outputs.update-type == 'version-update:semver-patch'
20+
if: contains(fromJSON('["version-update:semver-minor", "version-update:semver-patch"]'), steps.metadata.outputs.update-type)
2221
uses: hmarr/auto-approve-action@v4
2322
with:
24-
github-token: ${{ secrets.GITHUB_TOKEN }}
23+
github-token: ${{ github.token }}

0 commit comments

Comments
 (0)