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 5, 2024
1 parent f75e357 commit 0822578
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/yaml-normalization.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
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:
- uses: actions/checkout@v3
- name: Normalize
uses: mikefarah/yq@master
with:
cmd: |
scripts/normalize-all-yaml.sh
git diff --quiet

0 comments on commit 0822578

Please sign in to comment.