Skip to content

Commit

Permalink
fix(ci): use output rather than failure
Browse files Browse the repository at this point in the history
Signed-off-by: Max <[email protected]>
  • Loading branch information
max-nextcloud committed Feb 12, 2024
1 parent 2a4cf7e commit 1b79f4a
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions .github/workflows/update-node-dist.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ on:
# implemented since 28, once branched off, add your stable branch here
- main
# - stable28
- ci/update-node-dist

concurrency:
group: update-node-dist-${{ github.head_ref || github.ref || github.run_id }}
Expand Down Expand Up @@ -53,10 +54,15 @@ jobs:
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)"
{
echo 'CHANGED<<EOF'
git status --porcelain
echo 'EOF
} >> "$GITHUB_OUTPUT"
cat "$GITHUB_OUTPUT" >> $GITHUB_STEP_SUMMARY
- name: Add and commit
if: steps.changes.outcome == 'failure'
if: steps.changes.output.CHANGED != ''
run: |
git add --force js/
git commit --signoff -m 'chore(assets): recompile assets'
Expand Down

0 comments on commit 1b79f4a

Please sign in to comment.