Skip to content

Commit

Permalink
add normalization enforcement workflow step
Browse files Browse the repository at this point in the history
  • Loading branch information
kostmo committed Jan 6, 2024
1 parent 68eaa7b commit aadc6b5
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/yaml-normalization.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: YAML normalization
on:
push:
paths:
- 'data/**.yaml'
branches:
- main
pull_request:
paths:
- 'data/**.yaml'
branches:
- main
jobs:
ensure-yaml-normalization:
name: Ensure YAML files are normalized
runs-on: ubuntu-latest
steps:
- name: 'Setup yq'
uses: dcarbone/[email protected]
with:
version: "v4.35.1"
download-compressed: true
- uses: actions/checkout@v3
- name: Normalize
run: |
scripts/normalize-all-yaml.sh
git diff --name-only --exit-code

0 comments on commit aadc6b5

Please sign in to comment.