diff options
author | Nextcloud bot <bot@nextcloud.com> | 2022-06-11 16:37:40 +0000 |
---|---|---|
committer | Nextcloud bot <bot@nextcloud.com> | 2022-06-11 16:37:40 +0000 |
commit | fb90d5acac33bb5a04940798d401b3ec2f0c2ca7 (patch) | |
tree | 14ed35ed17adf4054255a7d0f8a72727cd6e7c68 | |
parent | aa8c22bf1185e5610d4c877054655785e477d0b6 (diff) |
Updating node.yml workflow from template
Signed-off-by: Nextcloud bot <bot@nextcloud.com>
-rw-r--r-- | .github/workflows/node.yml | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/.github/workflows/node.yml b/.github/workflows/node.yml index 9ebed785..9150d1f1 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 @@ -41,3 +44,13 @@ jobs: run: | npm ci npm run build --if-present + + - name: Check webpack build changes + run: | + bash -c "[[ ! \"`git status --porcelain `\" ]] || exit 1" + + - name: Show changes on failure + if: failure() + run: | + git status + git --no-pager diff |