Simplify and update verify-templating.yml

This makes it print out a diff when there is an error (instead of just a list of files that are wrong), which will make the error more obvious.  I also added `workflow_dispatch` so we can run it manually.
This commit is contained in:
Tianon Gravi 2024-12-13 15:02:49 -08:00
parent a064455918
commit acb09f65fd

View File

@ -3,6 +3,7 @@ name: Verify Templating
on:
pull_request:
push:
workflow_dispatch:
defaults:
run:
@ -14,9 +15,5 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Apply Templates
run: ./apply-templates.sh
- name: Check Git Status
run: |
status="$(git status --short)"
[ -z "$status" ]
- run: ./apply-templates.sh
- run: git diff --exit-code