21 lines
403 B
YAML
21 lines
403 B
YAML
name: On changes to .gitea
|
|
|
|
on:
|
|
push:
|
|
paths:
|
|
- ".gitea/**"
|
|
|
|
jobs:
|
|
lint-workflows:
|
|
runs-on: ubuntu-22.04
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Validate YAML
|
|
run: |
|
|
for f in .gitea/workflows/*.yml; do
|
|
echo "Validating $f"
|
|
python3 -c "import yaml; yaml.safe_load(open('$f'))" || exit 1
|
|
done
|