Skip to content

Commit

Permalink
Merge pull request #33451 from nextcloud/update-node-workflow-better-…
Browse files Browse the repository at this point in the history
…error-messages

Update node workflow for better error messages
  • Loading branch information
PVince81 authored Aug 3, 2022
2 parents 9475cc0 + b589545 commit 392b08d
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .github/workflows/node.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@ on:
- master
- stable*

permissions:
contents: read

jobs:
build:
runs-on: ubuntu-latest
Expand Down Expand Up @@ -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

0 comments on commit 392b08d

Please sign in to comment.