Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: fix finalizing the Sentry release #2379

Merged
merged 1 commit into from Dec 2, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
6 changes: 3 additions & 3 deletions .github/workflows/release.yml
Expand Up @@ -280,12 +280,12 @@ jobs:
- name: release status
id: get_release_status
run: |
status=$(sentry-cli releases list | grep 'cdktf-cli-${{ steps.get_version.outputs.version }} ' && echo 'released' || echo 'unreleased')
status=$(sentry-cli releases list --org hashicorp | grep 'cdktf-cli-${{ steps.get_version.outputs.version }} ' | grep 'unreleased' > /dev/null && echo "unreleased" || echo "released")
echo "Sentry returned: ${status}"
echo "release=$(echo $status | tr '\n' ' ')" >> $GITHUB_OUTPUT
echo "release=${status}" >> $GITHUB_OUTPUT
env:
SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_TOKEN }}
- name: Create a release
- name: Finalize the release
if: steps.get_release_status.outputs.release == 'unreleased'
run: sentry-cli releases finalize cdktf-cli-${{ steps.get_version.outputs.version }}
env:
Expand Down
5 changes: 3 additions & 2 deletions .github/workflows/release_next.yml
Expand Up @@ -251,11 +251,12 @@ jobs:
- name: release status
id: get_release_status
run: |
status=$(sentry-cli releases list | grep 'cdktf-cli-${{ steps.get_version.outputs.version }} ' && echo 'released' || echo 'unreleased')
status=$(sentry-cli releases list --org hashicorp | grep 'cdktf-cli-${{ steps.get_version.outputs.version }} ' | grep 'unreleased' > /dev/null && echo "unreleased" || echo "released")
echo "Sentry returned: ${status}"
echo "release=${status}" >> $GITHUB_OUTPUT
env:
SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_TOKEN }}
- name: Create a release
- name: Finalize the release
if: steps.get_release_status.outputs.release == 'unreleased'
run: sentry-cli releases finalize cdktf-cli-${{ steps.get_version.outputs.version }}
env:
Expand Down