Skip to content

Commit

Permalink
Remove extra separate step
Browse files Browse the repository at this point in the history
  • Loading branch information
kangaree committed Dec 17, 2024
1 parent 953762e commit 1ba6ef6
Showing 1 changed file with 0 additions and 25 deletions.
25 changes: 0 additions & 25 deletions .github/workflows/github-actions-release-candidate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,31 +37,6 @@ jobs:
run: |
git config --local user.name "${{ github.actor }}"
git config --local user.email "${{ github.actor }}@users.noreply.github.com"
- name: Check for "Inactive RC" label
id: check-inactive-rc
run: |
PR_NUMBER=$(curl -s -H "Authorization: token $GITHUB_TOKEN" \
"https://api.github.com/repos/${{ github.repository }}/commits/${{ github.sha }}/pulls" \
| jq '.[0].number')
echo "PR_NUMBER=$PR_NUMBER" >> $GITHUB_ENV
if [ ! -z "$PR_NUMBER" ] && [ "$PR_NUMBER" != "null" ]; then
echo "✅ Successfully found PR number: $PR_NUMBER"
else
echo "❌ Unable to find PR number"
exit 1
fi
echo "Fetching labels for PR #$PR_NUMBER..."
LABELS=$(gh pr view $PR_NUMBER --json labels -q '.labels[].name' || echo "Failed to fetch labels")
echo "Found labels: $LABELS"
if echo "$LABELS" | grep -iq "Inactive RC"; then
echo "⛔ PR has the 'Inactive RC' label. Skipping the release candidate process."
exit 0
fi
- name: Get Semver Label
id: get-label
run: |
Expand Down

0 comments on commit 1ba6ef6

Please sign in to comment.