Skip to content

Commit bbc14f6

Browse files
fix: Fix CI for auto update pull requests (box/box-codegen#506) (#221)
1 parent 13e5b16 commit bbc14f6

File tree

3 files changed

+16
-20
lines changed

3 files changed

+16
-20
lines changed

.codegen.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{ "engineHash": "7b8317a", "specHash": "c3c012c", "version": "1.0.0" }
1+
{ "engineHash": "3ed6b56", "specHash": "c3c012c", "version": "1.0.0" }

.github/workflows/autoupdate-pr.yml

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,12 @@ on:
77
jobs:
88
update_pull_requests:
99
runs-on: ubuntu-latest
10-
permissions:
11-
contents: write
12-
pull-requests: write
13-
repository-projects: write
1410

1511
steps:
1612
- name: Checkout repository
17-
uses: actions/checkout@v2
13+
uses: actions/checkout@v4
14+
with:
15+
token: ${{ secrets.DISPATCH_ACCESS_TOKEN }}
1816

1917
- name: Set up Git
2018
run: |
@@ -25,8 +23,6 @@ jobs:
2523
run: git fetch --prune --unshallow
2624

2725
- name: Auto update pull requests
28-
env:
29-
GH_TOKEN: ${{ secrets.DISPATCH_ACCESS_TOKEN }}
3026
run: |
3127
PR_LIST=$(curl -s -H "Authorization: Bearer ${{ secrets.DISPATCH_ACCESS_TOKEN }}" "https://api.github.com/repos/$GITHUB_REPOSITORY/pulls?state=open" | jq -r '.[] | .head.ref')
3228
for pr_branch in $PR_LIST; do

package-lock.json

Lines changed: 12 additions & 12 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)