Skip to content

Commit 79ed6fe

Browse files
committed
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.
1 parent 7b9cd87 commit 79ed6fe

File tree

1 file changed

+3
-8
lines changed

1 file changed

+3
-8
lines changed

.github/workflows/verify-templating.yml

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,7 @@ name: Verify Templating
33
on:
44
pull_request:
55
push:
6-
branches:
7-
- master
6+
workflow_dispatch:
87

98
defaults:
109
run:
@@ -16,9 +15,5 @@ jobs:
1615
runs-on: ubuntu-latest
1716
steps:
1817
- uses: actions/checkout@v4
19-
- name: Apply Templates
20-
run: ./apply-templates.sh
21-
- name: Check Git Status
22-
run: |
23-
status="$(git status --short)"
24-
[ -z "$status" ]
18+
- run: ./apply-templates.sh
19+
- run: git diff --exit-code

0 commit comments

Comments
 (0)