Skip to content

Commit

Permalink
fix: Check build changes
Browse files Browse the repository at this point in the history
Signed-off-by: Julius Härtl <[email protected]>
  • Loading branch information
juliusknorr committed Aug 31, 2023
1 parent 2b698f6 commit 777424c
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion .github/workflows/update-node-dist.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ on:
workflow_dispatch:
push:
branches:
# implemented since 28, once branched off, add you stable branch here
# implemented since 28, once branched off, add your stable branch here
- main
- ci/node-dist-workflow
# - stable28
Expand Down Expand Up @@ -44,7 +44,15 @@ jobs:
run: |
npm ci
npm run build --if-present
- name: Check webpack build changes
id: changes
continue-on-error: true
run: |
bash -c "[[ ! \"`git status --porcelain `\" ]] || (echo 'Please recompile and commit the assets, see the section \"Show changes on failure\" for details' && exit 1)"
- name: Add and commit
if: steps.changes.outcome == 'failure'
run: |
git add --force js/
git commit --signoff -m 'chore(assets): recompile assets'
Expand Down

0 comments on commit 777424c

Please sign in to comment.