Make assets build fail if changes are detected
This commit is contained in:
parent
c29ad30b56
commit
a03a49294a
10
.github/workflows/assets.yml
vendored
10
.github/workflows/assets.yml
vendored
@ -30,3 +30,13 @@ jobs:
|
||||
|
||||
- name: "Build prod assets"
|
||||
run: "yarn run build:prod"
|
||||
|
||||
- name: "Validate no change were created"
|
||||
run: |
|
||||
GITDIFF=`git diff`
|
||||
if [ "$GITDIFF" == "" ]; then
|
||||
exit 0
|
||||
else
|
||||
echo $GITDIFF
|
||||
exit 1
|
||||
fi
|
||||
|
Loading…
x
Reference in New Issue
Block a user