File tree Expand file tree Collapse file tree 4 files changed +22
-7
lines changed
Expand file tree Collapse file tree 4 files changed +22
-7
lines changed Original file line number Diff line number Diff line change 77jobs :
88 check-duplicate :
99 if : |
10- !endsWith(github.actor, '[bot]') &&
11- secrets.ANTHROPIC_API_KEY != ''
10+ !endsWith(github.actor, '[bot]')
1211 runs-on : ubuntu-latest
1312 timeout-minutes : 10
1413 concurrency :
@@ -19,12 +18,18 @@ jobs:
1918 issues : write
2019
2120 steps :
21+ - name : Skip (missing ANTHROPIC_API_KEY)
22+ if : ${{ secrets.ANTHROPIC_API_KEY == '' }}
23+ run : echo "ANTHROPIC_API_KEY is not configured; skipping duplicate check."
24+
2225 - name : Checkout repository
26+ if : ${{ secrets.ANTHROPIC_API_KEY != '' }}
2327 uses : actions/checkout@v5
2428 with :
2529 fetch-depth : 1
2630
2731 - name : Ensure duplicate label exists
32+ if : ${{ secrets.ANTHROPIC_API_KEY != '' }}
2833 uses : actions/github-script@v7
2934 with :
3035 github-token : ${{ github.token }}
5055 }
5156
5257 - name : Load prompt
58+ if : ${{ secrets.ANTHROPIC_API_KEY != '' }}
5359 id : prompt
5460 shell : bash
5561 run : |
6066 } >> "$GITHUB_OUTPUT"
6167
6268 - name : Run Claude duplicate check
69+ if : ${{ secrets.ANTHROPIC_API_KEY != '' }}
6370 uses : anthropics/claude-code-action@v1
6471 env :
6572 ISSUE_NUMBER : ${{ github.event.issue.number }}
Original file line number Diff line number Diff line change 77jobs :
88 triage :
99 if : |
10- !endsWith(github.actor, '[bot]') &&
11- secrets.OPENAI_API_KEY != ''
10+ !endsWith(github.actor, '[bot]')
1211 runs-on : ubuntu-latest
1312 concurrency :
1413 group : ${{ github.workflow }}-${{ github.event.issue.number }}
@@ -18,12 +17,18 @@ jobs:
1817 issues : write
1918
2019 steps :
20+ - name : Skip (missing OPENAI_API_KEY)
21+ if : ${{ secrets.OPENAI_API_KEY == '' }}
22+ run : echo "OPENAI_API_KEY is not configured; skipping issue triage."
23+
2124 - name : Checkout repository (for docs context)
25+ if : ${{ secrets.OPENAI_API_KEY != '' }}
2226 uses : actions/checkout@v5
2327 with :
2428 fetch-depth : 1
2529
2630 - name : Compute Responses API endpoint override (optional)
31+ if : ${{ secrets.OPENAI_API_KEY != '' }}
2732 id : responses_endpoint
2833 shell : bash
2934 run : |
3843 fi
3944
4045 - name : Run Codex triage
46+ if : ${{ secrets.OPENAI_API_KEY != '' }}
4147 id : run_codex
4248 uses : openai/codex-action@v1
4349 env :
5662 prompt-file : .github/prompts/codex-issue-triage.md
5763
5864 - name : Apply labels and upsert comment
59- if : steps.run_codex.outputs.final-message != ''
65+ if : ${{ secrets.OPENAI_API_KEY != '' && steps.run_codex.outputs.final-message != '' }}
6066 uses : actions/github-script@v7
6167 env :
6268 TRIAGE_JSON : ${{ steps.run_codex.outputs.final-message }}
Original file line number Diff line number Diff line change 2828 - name : Backend syntax check (compileall)
2929 run : python -m compileall -q backend/app
3030 - name : Backend import smoke test
31- run : python -c "from app.main import app; print('backend app import: ok')"
31+ run : |
32+ python -c "from app.main import app; print('backend app import: ok')"
3233
3334 frontend :
3435 if : github.event.pull_request.draft == false
Original file line number Diff line number Diff line change 4545 run : python -m compileall -q backend/app
4646 - name : Backend import smoke test
4747 if : steps.detect.outputs.exists == 'true'
48- run : python -c "from app.main import app; print('backend app import: ok')"
48+ run : |
49+ python -c "from app.main import app; print('backend app import: ok')"
4950
5051 frontend :
5152 runs-on : ubuntu-latest
You can’t perform that action at this time.
0 commit comments