fix: use env context (not secrets) in step-level if condition #20
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: CI | |
| on: | |
| push: | |
| branches: [main] | |
| pull_request: | |
| branches: [main] | |
| jobs: | |
| skill-validation: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - name: Set up Python | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: '3.12' | |
| - name: Install uv | |
| uses: astral-sh/setup-uv@v6 | |
| - name: Verify SKILL.md exists with valid frontmatter | |
| run: | | |
| test -f SKILL.md || { echo "SKILL.md not found"; exit 1; } | |
| head -10 SKILL.md | grep -q '^name:' || { echo "Missing 'name' in SKILL.md frontmatter"; exit 1; } | |
| head -10 SKILL.md | grep -q '^description:' || { echo "Missing 'description' in SKILL.md frontmatter"; exit 1; } | |
| echo "SKILL.md frontmatter is valid" | |
| - name: Check Python script syntax | |
| run: python3 -m py_compile scripts/research.py scripts/store.py scripts/upload.py scripts/state.py scripts/onboard.py | |
| - name: Smoke test state.py | |
| run: uv run scripts/state.py --help | |
| - name: Verify reference files exist | |
| run: | | |
| test -f references/online_docs.md || { echo "Missing references/online_docs.md"; exit 1; } | |
| test -f references/file_search_guide.md || { echo "Missing references/file_search_guide.md"; exit 1; } | |
| echo "All reference files present" | |
| - name: Verify community files exist | |
| run: | | |
| test -f CHANGELOG.md || { echo "Missing CHANGELOG.md"; exit 1; } | |
| test -f CONTRIBUTING.md || { echo "Missing CONTRIBUTING.md"; exit 1; } | |
| echo "All community files present" |