Skip to content

Commit

Permalink
User PAT to trigger workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
Coldwings authored and lihuiba committed Dec 16, 2024
1 parent 6a208e5 commit dd0fea4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/auto-pr-new.yml
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ jobs:
name: Open pick PR to ${{steps.branch_info.outputs.NEXT_BRANCH}}
if: steps.merge-changes.outputs.merge == 'true'
with:
github-token: ${{ github.token }}
github-token: ${{ secrets.AUTOPR_SECRET }}
script: |
await github.rest.pulls.create({
...context.repo,
Expand All @@ -88,7 +88,7 @@ jobs:
name: Open merge PR to ${{steps.branch_info.outputs.NEXT_BRANCH}}
if: steps.merge-changes.outputs.merge == 'false'
with:
github-token: ${{ github.token }}
github-token: ${{ secrets.AUTOPR_SECRET }}
script: |
await github.rest.pulls.create({
...context.repo,
Expand Down

0 comments on commit dd0fea4

Please sign in to comment.