Skip to content

Commit 72bfcfa

Browse files
committed
Codex auto-update 7 (wip)
1 parent 5aed8f7 commit 72bfcfa

1 file changed

Lines changed: 11 additions & 11 deletions

File tree

.github/workflows/codex-update.yml

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -64,15 +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_PRIVATE_KEY }}
73-
74-
- name: Create PR
75-
env:
76-
GH_TOKEN: ${{ steps.app-token.outputs.token }}
67+
- name: Push and create PR
7768
run: |
78-
gh pr create --base main --title "Update codex to ${{ needs.check.outputs.version }}" --body "Automated codex update" --label "codex-update"
69+
curl -X POST \
70+
-H "Accept: application/vnd.github+json" \
71+
-H "Authorization: Bearer ${{ secrets.GH_CREATE_PR_TOKEN }}" \
72+
https://api.github.com/repos/${{ github.repository }}/pulls \
73+
-d '{
74+
"title": "Update codex to ${{ needs.check.outputs.version }}",
75+
"body": "Automated codex update",
76+
"head": "${{ needs.check.outputs.branch }}",
77+
"base": "main"
78+
}'

0 commit comments

Comments
 (0)