Skip to content

Commit

Permalink
Simplify and update verify-templating.yml
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
tianon committed Dec 13, 2024
1 parent 297cb68 commit 7085c9c
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions .github/workflows/verify-templating.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ name: Verify Templating
on:
pull_request:
push:
workflow_dispatch:

defaults:
run:
Expand All @@ -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

0 comments on commit 7085c9c

Please sign in to comment.