Skip to content

Commit

Permalink
fix: Fix CI for auto update pull requests (box/box-codegen#506) (#221)
Browse files Browse the repository at this point in the history
  • Loading branch information
box-sdk-build authored Jun 7, 2024
1 parent 13e5b16 commit bbc14f6
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 20 deletions.
2 changes: 1 addition & 1 deletion .codegen.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{ "engineHash": "7b8317a", "specHash": "c3c012c", "version": "1.0.0" }
{ "engineHash": "3ed6b56", "specHash": "c3c012c", "version": "1.0.0" }
10 changes: 3 additions & 7 deletions .github/workflows/autoupdate-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,12 @@ on:
jobs:
update_pull_requests:
runs-on: ubuntu-latest
permissions:
contents: write
pull-requests: write
repository-projects: write

steps:
- name: Checkout repository
uses: actions/checkout@v2
uses: actions/checkout@v4
with:
token: ${{ secrets.DISPATCH_ACCESS_TOKEN }}

- name: Set up Git
run: |
Expand All @@ -25,8 +23,6 @@ jobs:
run: git fetch --prune --unshallow

- name: Auto update pull requests
env:
GH_TOKEN: ${{ secrets.DISPATCH_ACCESS_TOKEN }}
run: |
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')
for pr_branch in $PR_LIST; do
Expand Down
24 changes: 12 additions & 12 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit bbc14f6

Please sign in to comment.