From 1b79f4ae8529cb14a8f49a3e95a2679fcb34effb Mon Sep 17 00:00:00 2001 From: Max Date: Mon, 12 Feb 2024 11:10:57 +0100 Subject: [PATCH] fix(ci): use output rather than failure Signed-off-by: Max --- .github/workflows/update-node-dist.yml | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/.github/workflows/update-node-dist.yml b/.github/workflows/update-node-dist.yml index 651a91b3737..e7d36f430eb 100644 --- a/.github/workflows/update-node-dist.yml +++ b/.github/workflows/update-node-dist.yml @@ -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 }} @@ -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<> "$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'