mirror of
https://github.com/nextcloud/server.git
synced 2026-06-08 16:26:59 -04:00
Merge pull request #33451 from nextcloud/update-node-workflow-better-error-messages
Update node workflow for better error messages
This commit is contained in:
commit
392b08d761
1 changed files with 6 additions and 1 deletions
7
.github/workflows/node.yml
vendored
7
.github/workflows/node.yml
vendored
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue