Skip to content

Merge pull request #144 from RHEcosystemAppEng/fix/issue-143-skill-sc… #79

Merge pull request #144 from RHEcosystemAppEng/fix/issue-143-skill-sc…

Merge pull request #144 from RHEcosystemAppEng/fix/issue-143-skill-sc… #79

Workflow file for this run

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