File tree Expand file tree Collapse file tree 1 file changed +11
-10
lines changed
Expand file tree Collapse file tree 1 file changed +11
-10
lines changed Original file line number Diff line number Diff line change @@ -74,21 +74,23 @@ jobs:
7474 echo "DESC=$DESC_CLEANED" >> $GITHUB_ENV
7575 echo "BRANCH=${{ github.event.inputs.issue_key }}" >> $GITHUB_ENV
7676
77- # Set up LLM Agent
77+ # Run the LLM Agent and then commit the output
7878
79- - name : Install Codex (npm)
80- run : npm i -g @openai/codex
81-
82- # Run the LLM Agent and commit the output
83-
84- - name : Agent implement & commit
79+ - name : Run Codex Action
80+ uses : openai/codex-action@v1
8581 env :
8682 OPENAI_API_KEY : ${{ secrets.OPENAI_API_KEY }}
8783 GH_TOKEN : ${{ secrets.GITHUB_TOKEN }}
8884 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
89- CODEX_QUIET_MODE : " 1"
85+ with :
86+ openai-api-key : ${{ secrets.OPENAI_API_KEY }}
87+ prompt : |
88+ Implement ticket ${{ env.ISSUE_KEY }}: ${{ env.TITLE }}. ${{ env.DESC }}
89+
90+ # Commit any changes produced by Codex
91+
92+ - name : Commit changes
9093 run : |
91- codex exec --full-auto "Implement ticket $ISSUE_KEY: $TITLE. $DESC"
9294 git add -A
9395 git commit -m "$ISSUE_KEY: $TITLE" || echo "No changes to commit"
9496
@@ -113,4 +115,3 @@ jobs:
113115
114116 ## Acceptance
115117 Compiles and checks pass.
116-
You can’t perform that action at this time.
0 commit comments