Skip to content

Commit f065a27

Browse files
authored
fix release blocker so it only blocks on release branches (#777)
Signed-off-by: Simon Davies <simongdavies@users.noreply.github.com>
1 parent 1e3837c commit f065a27

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

.github/workflows/ReleaseBlockerCheck.yml

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,15 @@ jobs:
3030
REPO="${{ inputs.repository || github.repository }}"
3131
echo "Checking repository: $REPO"
3232
33-
if ! ./dev/check-release-blockers.sh "$REPO"; then
34-
echo "::error::Release blocked by open issues with 'release-blocker' label"
35-
exit 1
33+
# Only check for release blockers on release branches
34+
if [[ "${{ github.ref }}" == *"refs/heads/release/"* ]]; then
35+
echo "Release branch detected - checking for release blockers..."
36+
if ! ./dev/check-release-blockers.sh "$REPO"; then
37+
echo "::error::Release blocked by open issues with 'release-blocker' label"
38+
exit 1
39+
fi
40+
else
41+
echo "Non-release branch - skipping release blocker check"
3642
fi
3743
env:
3844
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)