Skip to content

Commit 7fe3c63

Browse files
RD-1286: Update workflow (#75)
1 parent c6a0f49 commit 7fe3c63

File tree

1 file changed

+11
-10
lines changed

1 file changed

+11
-10
lines changed

.github/workflows/autopr.yml

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff 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-

0 commit comments

Comments
 (0)