diff options
Diffstat (limited to '.github/workflows/node.yml')
-rw-r--r-- | .github/workflows/node.yml | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/.github/workflows/node.yml b/.github/workflows/node.yml index a0ecd45b149..7173a224c24 100644 --- a/.github/workflows/node.yml +++ b/.github/workflows/node.yml @@ -13,6 +13,9 @@ on: - master - stable* +permissions: + contents: read + jobs: build: runs-on: ubuntu-latest @@ -50,10 +53,12 @@ jobs: - name: Check webpack build changes run: | - bash -c "[[ ! \"`git status --porcelain `\" ]] || exit 1" + bash -c "[[ ! \"`git status --porcelain `\" ]] || (echo 'Please recompile and commit the assets, see the section \"Show changes on failure\" for details' && exit 1)" - name: Show changes on failure if: failure() run: | git status git --no-pager diff + exit 1 # make it red to grab attention + |