Skip to content

Commit bb1a779

Browse files
committed
Codex auto-update 5 (wip)
1 parent ba64636 commit bb1a779

1 file changed

Lines changed: 8 additions & 1 deletion

File tree

.github/workflows/codex-update.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,8 +64,15 @@ jobs:
6464
git commit -m "Update codex to ${{ needs.check.outputs.version }}"
6565
git push origin "${{ needs.check.outputs.branch }}"
6666
67+
- name: Generate GitHub App token
68+
id: app-token
69+
uses: actions/create-github-app-token@v1
70+
with:
71+
app-id: ${{ vars.GH_APP_ID }}
72+
private-key: ${{ secrets.GH_APP_TOKEN }}
73+
6774
- name: Create PR
6875
env:
69-
GH_TOKEN: ${{ secrets.GH_CREATE_PR_TOKEN }}
76+
GH_TOKEN: ${{ steps.app-token.outputs.token }}
7077
run: |
7178
gh pr create --title "Update codex to ${{ needs.check.outputs.version }}" --body "Automated codex update" --label "codex-update"

0 commit comments

Comments
 (0)