feat(CI): 顯示 Codex action 輸出

This commit is contained in:
2026-06-24 10:52:05 +00:00
parent 80c9e51c9c
commit dda89e1810
+21 -3
View File
@@ -20,13 +20,31 @@ jobs:
name: codex v${{ steps.version.outputs.version }} name: codex v${{ steps.version.outputs.version }}
tag_name: v${{ steps.version.outputs.version }} tag_name: v${{ steps.version.outputs.version }}
target_commitish: ${{ github.head_ref }} target_commitish: ${{ github.head_ref }}
qc: test:
name: 品質檢查 name: 工具測試
runs-on: ubuntu runs-on: ubuntu
needs: [version] needs: [version]
outputs:
status: ${{ steps.test.outputs.status }}
output: ${{ steps.test.outputs.output }}
steps: steps:
- name: 品質檢查 - name: 工具測試
id: test
uses: https://gitea.jsc.idv.tw/actions/codex@v${{ needs.version.outputs.version }} uses: https://gitea.jsc.idv.tw/actions/codex@v${{ needs.version.outputs.version }}
with: with:
oauth: ${{ secrets.CODEX_OAUTH }} oauth: ${{ secrets.CODEX_OAUTH }}
model: gpt-5.4-mini model: gpt-5.4-mini
output:
name: 輸出結果
runs-on: ubuntu
needs: [test]
steps:
- name: 輸出狀態
env:
CODEX_STATUS: ${{ needs.test.outputs.status }}
run: printf 'status: %s\n' "$CODEX_STATUS"
- name: 輸出內容
env:
CODEX_OUTPUT: ${{ needs.test.outputs.output }}
run: |
printf 'output:\n%s\n' "$CODEX_OUTPUT"