name: Skill Review on: pull_request: paths: ['**/SKILL.md'] jobs: review: runs-on: ubuntu-latest env: TESSL_REVIEW_THRESHOLD: '80' TESSL_TOKEN: ${{ secrets.TESSL_TOKEN || secrets.TESSL_API_TOKEN }} TESSL_WORKSPACE: antigravity-awesome-skills permissions: contents: read steps: - name: Require Tessl token for repository branches if: ${{ env.TESSL_TOKEN == '' && github.event.pull_request.head.repo.full_name == github.repository }} run: | echo "::error title=Missing Tessl token::Configure TESSL_TOKEN, or keep the legacy TESSL_API_TOKEN secret until the migration is complete." exit 1 - name: Skip Tessl Review for fork PRs without secrets if: ${{ env.TESSL_TOKEN == '' && github.event.pull_request.head.repo.full_name != github.repository }} run: | echo "::warning title=Tessl Review skipped::GitHub does not expose repository secrets to this fork PR. Maintainers must review the changed SKILL.md files manually." - uses: actions/checkout@v5 if: ${{ env.TESSL_TOKEN != '' }} with: fetch-depth: 0 ref: ${{ github.event.pull_request.head.sha }} - uses: tesslio/setup-tessl@25ec223fc0da33b41b8044ff5ab2b85235f4f91e if: ${{ env.TESSL_TOKEN != '' }} with: token: ${{ env.TESSL_TOKEN }} - name: Review changed skills if: ${{ env.TESSL_TOKEN != '' }} run: node tools/scripts/review_changed_skills.cjs env: BASE_SHA: ${{ github.event.pull_request.base.sha }} HEAD_SHA: ${{ github.event.pull_request.head.sha }} PR_NUMBER: ${{ github.event.pull_request.number }}