diff --git a/.github/workflows/github-actions-release-candidate.yml b/.github/workflows/github-actions-release-candidate.yml index 8f1a7062f3..d3938cab2a 100644 --- a/.github/workflows/github-actions-release-candidate.yml +++ b/.github/workflows/github-actions-release-candidate.yml @@ -60,6 +60,11 @@ jobs: exit 1 fi + if echo "$LABELS" | grep -iq "Inactive RC"; then + echo "⏭️ PR has the 'Inactive RC' label. Skipping the release candidate process." + exit 0 # Exit the job early, skipping the rest of the workflow + fi + SEMVER_LABEL=$(echo "$LABELS" | grep -iE '^(major|minor|patch)$' || true) echo "Found Semver labels: $SEMVER_LABEL"