File tree 2 files changed +0
-33
lines changed
2 files changed +0
-33
lines changed Original file line number Diff line number Diff line change @@ -17,26 +17,6 @@ defaults:
17
17
shell : bash
18
18
19
19
jobs :
20
- auto-approve :
21
- if : ${{ github.event.pull_request.user.login == 'dependabot[bot]' }}
22
- runs-on : ubuntu-22.04
23
- steps :
24
- - name : Dependabot metadata
25
- id : dependabot-metadata
26
- uses : dependabot/fetch-metadata@v1
27
- - uses : actions/checkout@v4
28
- - name : Approve a PR if not already approved
29
- run : |
30
- gh pr checkout "$PR_URL" # sets the upstream metadata for `gh pr status`
31
- if [ "$(gh pr status --json reviewDecision -q .currentBranch.reviewDecision)" != "APPROVED" ]; then
32
- gh pr review --approve "$PR_URL"
33
- else
34
- echo "PR already approved, skipping additional approvals to minimize emails/notification noise."
35
- fi
36
- env :
37
- PR_URL : ${{github.event.pull_request.html_url}}
38
- GITHUB_TOKEN : ${{secrets.GITHUB_TOKEN}}
39
-
40
20
enable-automerge :
41
21
if : ${{ github.event.pull_request.user.login == 'dependabot[bot]'}}
42
22
runs-on : ubuntu-22.04
Original file line number Diff line number Diff line change 73
73
74
74
- name : Create PR using app token
75
75
if : steps.devbox-versions-changed.outputs.number_changed > 0
76
- id : create-pr
77
76
env :
78
77
GITHUB_TOKEN : ${{ steps.app-token.outputs.token }}
79
78
run : |
82
81
--body "This PR was automatically created by the scheduled devbox update workflow." \
83
82
--label ignore-for-release)"
84
83
gh pr merge --auto --squash "${pr_url}"
85
- echo "pr_url=${pr_url}" >>"${GITHUB_OUTPUT}"
86
-
87
- - name : Approve PR using workflow token
88
- if : steps.devbox-versions-changed.outputs.number_changed > 0
89
- env :
90
- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
91
- run : |
92
- if [ "$(gh pr status --json reviewDecision -q .currentBranch.reviewDecision)" != "APPROVED" ]; then
93
- gh pr review --approve "${{ steps.create-pr.outputs.pr_url }}"
94
- else
95
- echo "PR already approved, skipping additional approvals to minimize emails/notification noise."
96
- fi
You can’t perform that action at this time.
0 commit comments