mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-06-21 14:14:30 +00:00
- save some compute minutes 🌱
- Limit concurrency by workflow + ref (except for main branch)
22 lines
469 B
YAML
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 .
|