21
pull-requests: write
22
23
steps:
24
+ - name: Generate GitHub App token
25
+ id: app-token
26
+ uses: actions/create-github-app-token@bcd2ba49218906704ab6c1aa796996da409d3eb1 # v3.2.0
27
+ with:
28
+ app-id: ${{ secrets.RELEASE_BOT_APP_ID }}
29
+ private-key: ${{ secrets.RELEASE_BOT_APP_PRIVATE_KEY }}
30
+
31
- name: Checkout Code
32
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
33
+ with:
34
+ token: ${{ steps.app-token.outputs.token }}
35
36
- name: Setup Node.js, pnpm, Bun
37
uses: ./.github/actions/setup-node-pnpm-bun
44
id: create-pr
45
uses: peter-evans/create-pull-request@5f6978faf089d4d20b00c7766989d076bb2fc7f1 # v8.1.1
46
with:
47
+ token: ${{ steps.app-token.outputs.token }}
48
commit-message: 'docs: auto-generate TypeScript SDK reference'
49
title: 'docs: update TypeScript SDK reference from source'
50
body: |
59
- name: Request review from pusher
60
if: steps.create-pr.outputs.pull-request-number
61
env:
52
- GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
62
+ GH_TOKEN: ${{ steps.app-token.outputs.token }}
63
PR_NUMBER: ${{ steps.create-pr.outputs.pull-request-number }}
64
AUTHOR: ${{ github.actor }}
65
run: gh pr edit "$PR_NUMBER" --add-reviewer "$AUTHOR"
71
pull-requests: write
72
73
steps:
74
+ - name: Generate GitHub App token
75
+ id: app-token
76
+ uses: actions/create-github-app-token@bcd2ba49218906704ab6c1aa796996da409d3eb1 # v3.2.0
77
+ with:
78
+ app-id: ${{ secrets.RELEASE_BOT_APP_ID }}
79
+ private-key: ${{ secrets.RELEASE_BOT_APP_PRIVATE_KEY }}
80
+
81
- name: Checkout Code
82
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
83
+ with:
84
+ token: ${{ steps.app-token.outputs.token }}
85
86
- name: Setup Python with UV
87
uses: ./.github/actions/setup-python-uv
92
id: create-pr
93
uses: peter-evans/create-pull-request@5f6978faf089d4d20b00c7766989d076bb2fc7f1 # v8.1.1
94
with:
95
+ token: ${{ steps.app-token.outputs.token }}
96
commit-message: 'docs: auto-generate Python SDK reference'
97
title: 'docs: update Python SDK reference from source'
98
body: |
107
- name: Request review from pusher
108
if: steps.create-pr.outputs.pull-request-number
109
env:
90
- GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
110
+ GH_TOKEN: ${{ steps.app-token.outputs.token }}
111
PR_NUMBER: ${{ steps.create-pr.outputs.pull-request-number }}
112
AUTHOR: ${{ github.actor }}
113
run: gh pr edit "$PR_NUMBER" --add-reviewer "$AUTHOR"