Skip to content

Commit 8b20edb

Browse files
committed
Use GH app for Codex updates
1 parent e5daf04 commit 8b20edb

1 file changed

Lines changed: 11 additions & 0 deletions

File tree

.github/workflows/codex-update.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,16 @@ jobs:
4848
BRANCH: ${{ needs.check.outputs.branch }}
4949
VERSION: ${{ needs.check.outputs.version }}
5050
steps:
51+
- name: Generate GitHub token
52+
uses: actions/create-github-app-token@v2
53+
id: generate-token
54+
with:
55+
app-id: ${{ secrets.RELEASE_PLZ_APP_ID }}
56+
private-key: ${{ secrets.RELEASE_PLZ_APP_PRIVATE_KEY }}
57+
5158
- uses: actions/checkout@v4
59+
with:
60+
token: ${{ steps.generate-token.outputs.token }}
5261

5362
- name: Configure git user and prepare branch
5463
run: |
@@ -86,6 +95,8 @@ jobs:
8695
git push -- origin "$BRANCH"
8796
8897
- name: Create PR
98+
env:
99+
GH_TOKEN: ${{ steps.generate-token.outputs.token }}
89100
run: |
90101
echo -e "[What's new](https://github.com/openai/codex/releases/tag/rust-v${VERSION})\n\n$(cat pr-body.md 2>/dev/null || true)" > pr-body.md
91102

0 commit comments

Comments
 (0)