Skip to content

Commit 1e99673

Browse files
committed
ci: fix invalid workflow syntax
1 parent c6bf194 commit 1e99673

File tree

4 files changed

+22
-7
lines changed

4 files changed

+22
-7
lines changed

.github/workflows/claude-issue-duplicate-check.yml

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,7 @@ on:
77
jobs:
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 }}
@@ -50,6 +55,7 @@ jobs:
5055
}
5156
5257
- name: Load prompt
58+
if: ${{ secrets.ANTHROPIC_API_KEY != '' }}
5359
id: prompt
5460
shell: bash
5561
run: |
@@ -60,6 +66,7 @@ jobs:
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 }}

.github/workflows/codex-issue-triage.yml

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,7 @@ on:
77
jobs:
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: |
@@ -38,6 +43,7 @@ jobs:
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:
@@ -56,7 +62,7 @@ jobs:
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 }}

.github/workflows/pr-check.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,8 @@ jobs:
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

.github/workflows/test.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,8 @@ jobs:
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

0 commit comments

Comments
 (0)