From b3e30a818586bc6ffc46c25c43d3b96c972aa45c Mon Sep 17 00:00:00 2001 From: Luke Tainton Date: Tue, 16 Jul 2024 19:07:38 +0100 Subject: [PATCH] Set fail if no release created --- .github/workflows/create-release.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/create-release.yml b/.github/workflows/create-release.yml index ad67e43..0fc653d 100644 --- a/.github/workflows/create-release.yml +++ b/.github/workflows/create-release.yml @@ -46,6 +46,7 @@ jobs: body: ${{ steps.tag_version.outputs.changelog }} generateReleaseNotes: true - - name: Set success flag + - name: Set success/fail flag id: set_flag - run: echo "success=true" >> "$GITHUB_OUTPUT" + if: steps.changes.outputs.changes == 'true' + run: if test "${{ steps.changes.outputs.changes }}" = "true"; then echo "success=true" >> "$GITHUB_OUTPUT"; else echo "success=false" >> "$GITHUB_OUTPUT"; fi