summaryrefslogtreecommitdiffstats
path: root/.github
diff options
context:
space:
mode:
authorVincent Petry <vincent@nextcloud.com>2022-08-03 15:23:20 +0200
committerVincent Petry <vincent@nextcloud.com>2022-08-03 15:23:20 +0200
commitb5895459c9ea87f8d1d0d81c168e57d8b9f7b542 (patch)
treeeb4980a06f21a8529b7599021e08a2a32bf88461 /.github
parent9475cc02b218f7cab402ec0b2b370ed6c68650c1 (diff)
downloadnextcloud-server-b5895459c9ea87f8d1d0d81c168e57d8b9f7b542.tar.gz
nextcloud-server-b5895459c9ea87f8d1d0d81c168e57d8b9f7b542.zip
Update node workflow for better error messages
Signed-off-by: Vincent Petry <vincent@nextcloud.com>
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/node.yml7
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
+