File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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+ }'
You can’t perform that action at this time.
0 commit comments