Make assets build fail if changes are detected

This commit is contained in:
Jeremy Benoist 2020-11-25 11:16:05 +01:00
parent c29ad30b56
commit a03a49294a
No known key found for this signature in database
GPG key ID: BCA73962457ACC3C

View file

@ -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