go-ethereum/.github/workflows/yml.yml
Quentin McGaw a8df623269
chore(ci): restrict each job concurrency except for main branch (#117)
- save some compute minutes 🌱
- Limit concurrency by workflow + ref (except for main branch)
2025-02-06 11:03:26 +00:00

22 lines
469 B
YAML

name: YAML check
on:
pull_request:
branches: [main]
paths:
- "**/*.yml"
- "**/*.yaml"
- ".github/workflows/yml.yml"
- ".github/yamllint.yml"
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: ${{ github.ref != 'refs/heads/main' }}
jobs:
yaml-check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Validate YAML files
run: yamllint -c .yamllint.yml .