chore(ci): Execute 階段呼叫 codex 自我介紹並輸出至 message #3

Merged
admin merged 10 commits from develop into master 2026-07-01 08:49:48 +00:00
2 changed files with 14 additions and 3 deletions
Showing only changes of commit f6f7aaac80 - Show all commits
+11 -2
View File
@@ -9,15 +9,24 @@ jobs:
name: 1. BUILD
runs-on: ubuntu
outputs:
message: ${{ steps.build.outputs.message }}
message: ${{ steps.execute.outputs.message }}
steps:
- name: Source Code checkout
uses: actions/checkout@${{ vars.ACTION_CHECKOUT_VERSION }}
- name: Build
uses: ./
with:
oauth: ${{ secrets.CODEX_OAUTH }}
- name: Execute
id: execute
run: echo "do something..."
shell: bash
run: |
MESSAGE=$(codex exec "請你進行自我介紹" 2>/dev/null)
{
echo "message<<CODEX_EOF"
echo "$MESSAGE"
echo "CODEX_EOF"
} >> "$GITHUB_OUTPUT"
test:
name: 2. TEST
runs-on: ubuntu
+3 -1
View File
@@ -15,7 +15,9 @@ runs:
- name: Setup Codex
env:
CODEX_NON_INTERACTIVE: 1
run: curl -fsSL https://chatgpt.com/codex/install.sh | sh
run: |
curl -fsSL https://chatgpt.com/codex/install.sh | sh
echo "$HOME/.local/bin" >> "$GITHUB_PATH"
shell: bash
- name: Login Codex with OAuth
env: