From c18408e08111eb8eb0aae68aba72cfc8f2e74d93 Mon Sep 17 00:00:00 2001 From: Gary Kang <42440452+kangaree@users.noreply.github.com> Date: Fri, 20 Dec 2024 14:42:07 -0500 Subject: [PATCH] [PLAY-1708] Skip RC process with 'Inactive RC' label (#4021) **What does this PR do?** Skip RC process with 'Inactive RC' label. **How to test?** Steps to confirm the desired behavior: After this is merged, RCs should work as normal. This PR has the 'Inactive RC' label, so an RC should not be generated. #### Checklist: - [x] **LABELS** Add a label: `enhancement`, `bug`, `improvement`, `new kit`, `deprecated`, or `breaking`. See [Changelog & Labels](https://github.com/powerhome/playbook/wiki/Changelog-&-Labels) for details. - [x] **DEPLOY** I have added the `milano` label to show I'm ready for a review. --------- Co-authored-by: Jasper Furniss --- .github/workflows/github-actions-release-candidate.yml | 5 +++++ 1 file changed, 5 insertions(+) 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"