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
1 changed files with 10 additions and 0 deletions

View File

@ -30,3 +30,13 @@ jobs:
- name: "Build prod assets" - name: "Build prod assets"
run: "yarn run build:prod" 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