Merge pull request #144 from RHEcosystemAppEng/fix/issue-143-skill-sc… #79
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: Skill Check Tier 1 | |
| on: | |
| pull_request: | |
| types: [opened, synchronize, reopened, ready_for_review] | |
| push: | |
| branches: [main] | |
| workflow_dispatch: | |
| inputs: | |
| validate_all: | |
| description: 'Validate all skills (true) or changed only (false)' | |
| required: false | |
| default: 'true' | |
| type: choice | |
| options: | |
| - 'true' | |
| - 'false' | |
| jobs: | |
| tier1-skill-check: | |
| # Skip draft PRs | |
| if: github.event.pull_request.draft == false || github.event_name == 'push' || github.event_name == 'workflow_dispatch' | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 0 | |
| - name: Set up Python | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: '3.11' | |
| - name: Install uv | |
| run: curl -LsSf https://astral.sh/uv/install.sh | sh | |
| - name: Install dependencies | |
| run: | | |
| source $HOME/.cargo/env | |
| make install | |
| - name: Validate skills (Tier 1) | |
| env: | |
| GITHUB_EVENT_NAME: ${{ github.event_name }} | |
| GITHUB_BASE_REF: ${{ github.base_ref }} | |
| GITHUB_EVENT_BEFORE: ${{ github.event.before }} | |
| run: | | |
| source $HOME/.cargo/env | |
| if [ "${{ github.event_name }}" = "workflow_dispatch" ] && [ "${{ github.event.inputs.validate_all }}" = "true" ]; then | |
| echo "Running Tier 1 on ALL skills (manual dispatch)..." | |
| uv run python scripts/validate_skills_tier1.py | |
| else | |
| ./scripts/ci-validate-changed-skills.sh tier1 | |
| fi |