|
| 1 | +# Copyright 2026 Google LLC |
| 2 | +# |
| 3 | +# Licensed under the Apache License, Version 2.0 (the "License"); |
| 4 | +# you may not use this file except in compliance with the License. |
| 5 | +# You may obtain a copy of the License at |
| 6 | +# |
| 7 | +# https://www.apache.org/licenses/LICENSE-2.0 |
| 8 | +# |
| 9 | +# Unless required by applicable law or agreed to in writing, software |
| 10 | +# distributed under the License is distributed on an "AS IS" BASIS, |
| 11 | +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 12 | +# See the License for the specific language governing permissions and |
| 13 | +# limitations under the License. |
| 14 | + |
| 15 | +name: Check Agent Skills |
| 16 | + |
| 17 | +on: |
| 18 | + push: |
| 19 | + branches: [ main, master, gh-pages ] |
| 20 | + pull_request: |
| 21 | + branches: [ main, master, gh-pages ] |
| 22 | + |
| 23 | +jobs: |
| 24 | + check-skills: |
| 25 | + runs-on: ubuntu-latest |
| 26 | + steps: |
| 27 | + - name: Checkout Code |
| 28 | + uses: actions/checkout@v4 |
| 29 | + |
| 30 | + - name: Set up Python |
| 31 | + uses: actions/setup-python@v5 |
| 32 | + with: |
| 33 | + python-version: '3.11' |
| 34 | + |
| 35 | + - name: Check generated skills are in sync |
| 36 | + run: python tools/generate_agent_skills.py --check |
| 37 | + |
| 38 | + - name: Set up Node.js |
| 39 | + uses: actions/setup-node@v4 |
| 40 | + with: |
| 41 | + node-version: '20' |
| 42 | + |
| 43 | + - name: Check Markdown Links |
| 44 | + run: | |
| 45 | + npx markdown-link-check -c .github/workflows/mlc_config.json README.md |
| 46 | + npx markdown-link-check -c .github/workflows/mlc_config.json skills/google-styleguide/SKILL.md |
| 47 | +
|
0 commit comments