File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change 5
5
types :
6
6
- opened
7
7
8
+ env :
9
+ GROUPS : ' ["dev-minor-and-patch-dependencies", "gh-actions-packages", "test-versions"]'
10
+
8
11
jobs :
9
12
dependabot :
10
13
if : github.event.pull_request.user.login == 'dependabot[bot]'
@@ -23,13 +26,13 @@ jobs:
23
26
with :
24
27
github-token : " ${{ steps.octo-sts.outputs.token }}"
25
28
- name : Enable auto-merge for Dependabot PRs
26
- if : steps.metadata.outputs.dependency-group == 'test-versions'
29
+ if : contains(fromJSON(env.GROUPS), steps.metadata.outputs.dependency-group)
27
30
run : gh pr merge --auto --squash "$PR_URL"
28
31
env :
29
32
PR_URL : ${{ github.event.pull_request.html_url }}
30
33
GH_TOKEN : ${{ steps.octo-sts.outputs.token }}
31
34
- name : Approve a PR
32
- if : steps.metadata.outputs.dependency-group == 'test-versions'
35
+ if : contains(fromJSON(env.GROUPS), steps.metadata.outputs.dependency-group)
33
36
run : gh pr review --approve "$PR_URL"
34
37
env :
35
38
PR_URL : ${{ github.event.pull_request.html_url }}
You can’t perform that action at this time.
0 commit comments