Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVincent Petry <vincent@nextcloud.com>2022-08-03 16:23:20 +0300
committerVincent Petry <vincent@nextcloud.com>2022-08-03 16:23:20 +0300
commitb5895459c9ea87f8d1d0d81c168e57d8b9f7b542 (patch)
treeeb4980a06f21a8529b7599021e08a2a32bf88461
parent9475cc02b218f7cab402ec0b2b370ed6c68650c1 (diff)
Update node workflow for better error messages
Signed-off-by: Vincent Petry <vincent@nextcloud.com>
-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
+