From bece3e508604644f07604931bcca327078a93556 Mon Sep 17 00:00:00 2001 From: Francesco Novy Date: Thu, 17 Oct 2024 10:30:45 -0700 Subject: [PATCH] ci: Ensure release comments are not added for prereleases (#13991) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Noticed here: https://github.com/getsentry/sentry-javascript/issues/13932#issuecomment-2414900079 we should not add comments for prereleases 😅 --- .github/workflows/release-comment-issues.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/release-comment-issues.yml b/.github/workflows/release-comment-issues.yml index e9d1e81b75ea..4bbcb29aba21 100644 --- a/.github/workflows/release-comment-issues.yml +++ b/.github/workflows/release-comment-issues.yml @@ -20,7 +20,12 @@ jobs: run: echo "version=${{ github.event.inputs.version || github.event.release.tag_name }}" >> $GITHUB_OUTPUT - name: Comment on linked issues that are mentioned in release - if: steps.get_version.outputs.version != '' + if: | + steps.get_version.outputs.version != '' + && !contains(steps.get_version.outputs.version, '-beta.') + && !contains(steps.get_version.outputs.version, '-alpha.') + && !contains(steps.get_version.outputs.version, '-rc.') + uses: getsentry/release-comment-issues-gh-action@v1 with: github_token: ${{ secrets.GITHUB_TOKEN }}