From eca63e815c6d1a8b7fd6baf016add182a53f3a50 Mon Sep 17 00:00:00 2001 From: Daniel Schmidt Date: Fri, 18 Nov 2022 17:13:57 +0100 Subject: [PATCH] chore: fix sentry release script --- .github/workflows/release.yml | 5 +++-- .github/workflows/release_next.yml | 3 ++- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index acb184ff20..367072377f 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -45,7 +45,7 @@ jobs: run: | status=$(sentry-cli releases list | grep 'cdktf-cli-${{ steps.get_version.outputs.version }} ' && echo 'released' || echo 'unreleased') echo "Sentry returned: ${status}" - echo "release=${status}" >> $GITHUB_OUTPUT + echo "release=$(echo $status | tr '\n' ' ')" >> $GITHUB_OUTPUT env: SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_TOKEN }} - name: Create a release @@ -276,7 +276,8 @@ jobs: id: get_release_status run: | status=$(sentry-cli releases list | grep 'cdktf-cli-${{ steps.get_version.outputs.version }} ' && echo 'released' || echo 'unreleased') - echo "release=${status}" >> $GITHUB_OUTPUT + echo "Sentry returned: ${status}" + echo "release=$(echo $status | tr '\n' ' ')" >> $GITHUB_OUTPUT env: SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_TOKEN }} - name: Create a release diff --git a/.github/workflows/release_next.yml b/.github/workflows/release_next.yml index 73d789d158..1d1d64396f 100644 --- a/.github/workflows/release_next.yml +++ b/.github/workflows/release_next.yml @@ -50,7 +50,8 @@ jobs: id: get_release_status run: | status=$(sentry-cli releases list | grep 'cdktf-cli-${{ steps.get_version.outputs.version }} ' && echo 'released' || echo 'unreleased') - echo "release=${status}" >> $GITHUB_OUTPUT + echo "Sentry returned: ${status}" + echo "release=$(echo $status | tr '\n' ' ')" >> $GITHUB_OUTPUT env: SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_TOKEN }} - name: Create a release