mirror of
https://github.com/danog/php.git
synced 2025-01-18 03:03:33 +01: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:
parent
a064455918
commit
acb09f65fd
9
.github/workflows/verify-templating.yml
vendored
9
.github/workflows/verify-templating.yml
vendored
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user