Skip to content

Commit b8c8e20

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

1 file changed

Lines changed: 10 additions & 3 deletions

File tree

.github/workflows/codex-update.yml

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,14 @@ jobs:
7272
private-key: ${{ secrets.GH_APP_PRIVATE_KEY }}
7373

7474
- name: Create PR
75-
env:
76-
GH_TOKEN: ${{ steps.app-token.outputs.token }}
7775
run: |
78-
gh pr create --base main --title "Update codex to ${{ needs.check.outputs.version }}" --body "Automated codex update" --label "codex-update"
76+
curl --fail-with-body -X POST \
77+
-H "Accept: application/vnd.github+json" \
78+
-H "Authorization: Bearer ${{ steps.app-token.outputs.token }}" \
79+
https://api.github.com/repos/${{ github.repository }}/pulls \
80+
-d '{
81+
"title": "Update codex to ${{ needs.check.outputs.version }}",
82+
"body": "Automated codex update",
83+
"head": "${{ needs.check.outputs.branch }}",
84+
"base": "main"
85+
}'

0 commit comments

Comments
 (0)