1
0
mirror of https://github.com/docker-library/golang.git synced 2025-02-06 08:33:38 +00:00

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 14:44:24 -08:00
parent e023328721
commit f98355a73b

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