diff --git a/.github/workflows/release-go-module.yml b/.github/workflows/release-go-module.yml index 78b2e4086..15c7bc3ac 100644 --- a/.github/workflows/release-go-module.yml +++ b/.github/workflows/release-go-module.yml @@ -80,7 +80,7 @@ jobs: id: check_breaking_changes run: | set +e # Disable exit on error to capture output even if the command fails - BREAKING_CHANGES=$(gorelease -base $LAST_TAG_VERSION -version $VERSION 2>&1 | sed -r "s/\x1B\[[0-9;]*[mK]//g") + BREAKING_CHANGES=$(gorelease -base $LAST_TAG_VERSION -version $VERSION 2>&1) echo "Breaking changes: ${BREAKING_CHANGES}" set -e # Re-enable exit on error for the subsequent steps echo "BREAKING_CHANGES<> $GITHUB_ENV