From cb049360d9a316e429740d47431e0d6fa129d11a Mon Sep 17 00:00:00 2001
From: Tianon Gravi <admwiggin@gmail.com>
Date: Fri, 13 Dec 2024 15:02:43 -0800
Subject: [PATCH] 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.
---
 .github/workflows/verify-templating.yml | 8 ++------
 1 file changed, 2 insertions(+), 6 deletions(-)

diff --git a/.github/workflows/verify-templating.yml b/.github/workflows/verify-templating.yml
index 9ece508..e822ba6 100644
--- a/.github/workflows/verify-templating.yml
+++ b/.github/workflows/verify-templating.yml
@@ -15,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
-- 
GitLab