From ce1766dc64ee918a92f0ebb7f241b4c7cf1d8134 Mon Sep 17 00:00:00 2001 From: alvicsam Date: Fri, 4 Apr 2025 11:11:05 +0200 Subject: [PATCH] skip check in PRs --- .github/workflows/release.yml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 54b5cde..86edbd5 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -33,7 +33,13 @@ jobs: run: | if [[ $CURRENT_TAG == 'main' ]]; then - echo "::notice::Tag $CURRENT_TAG is not a release tag, skipping the check"; + echo "::notice::Tag $CURRENT_TAG is not a release tag, skipping the check in the main branch"; + exit 0 + fi + + if [[ $CURRENT_TAG != "v"* ]]; + then + echo "::error::Tag $CURRENT_TAG is not a release tag, skipping the check in a PR"; exit 0 fi