From 46f46b28b3a406090c91181220e0f5353b4e9c49 Mon Sep 17 00:00:00 2001 From: Dennis Ploeger Date: Mon, 7 Mar 2022 09:11:32 +0100 Subject: [PATCH] chore: Fixed error handling --- .github/workflows/prerelease.yml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/.github/workflows/prerelease.yml b/.github/workflows/prerelease.yml index de47c1c4..cdb81429 100644 --- a/.github/workflows/prerelease.yml +++ b/.github/workflows/prerelease.yml @@ -17,7 +17,14 @@ jobs: token: ${{ secrets.DEPLOYMENT_TOKEN }} - name: Remove trailing whitespace run: | - find . -name ".gd$" -type f | xargs sed -i 's/[[:space:]]$//' + OUTPUT=$(find . -name ".gd$" -type f | xargs sed -i 's/[[:space:]]$//') + RC=$? + if [[ $RC -ne 0 ]] && [[ $RC -ne 128 ]] + then + echo $OUTPUT + exit $RC + fi + exit 0 - name: Calculate version id: calculate_version uses: mathieudutour/github-tag-action@v5.6