From a03a49294a1dbb6c488f3591ab49bbb4d2791328 Mon Sep 17 00:00:00 2001 From: Jeremy Benoist Date: Wed, 25 Nov 2020 11:16:05 +0100 Subject: [PATCH] Make assets build fail if changes are detected --- .github/workflows/assets.yml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/.github/workflows/assets.yml b/.github/workflows/assets.yml index f52251f93..8a3103329 100644 --- a/.github/workflows/assets.yml +++ b/.github/workflows/assets.yml @@ -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