diff --git a/.codegen.json b/.codegen.json index 0dee785..5776b3a 100644 --- a/.codegen.json +++ b/.codegen.json @@ -1 +1 @@ -{ "engineHash": "7b8317a", "specHash": "c3c012c", "version": "1.0.0" } +{ "engineHash": "3ed6b56", "specHash": "c3c012c", "version": "1.0.0" } diff --git a/.github/workflows/autoupdate-pr.yml b/.github/workflows/autoupdate-pr.yml index f2f0537..185ab94 100644 --- a/.github/workflows/autoupdate-pr.yml +++ b/.github/workflows/autoupdate-pr.yml @@ -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: | @@ -25,10 +23,8 @@ jobs: run: git fetch --prune --unshallow - name: Auto update pull requests - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} run: | - PR_LIST=$(curl -s -H "Authorization: Bearer ${{ secrets.GITHUB_TOKEN }}" "https://api.github.com/repos/$GITHUB_REPOSITORY/pulls?state=open" | jq -r '.[] | .head.ref') + 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 git checkout "$pr_branch" if git merge origin/main; then