Skip to content

Commit edbe05a

Browse files
author
Isaiah Yemitan
committed
refactor: fail the workflow if branch name doesn't match preview/**
1 parent 730e5cb commit edbe05a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/preview-release-on-push.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
BRANCH_NAME=$(echo "${GITHUB_REF#refs/heads/}")
1717
if [[ ! "$BRANCH_NAME" =~ ^preview/ ]]; then
1818
echo "Branch name does not match 'preview/**'. Exiting workflow."
19-
exit 0
19+
exit 1
2020
fi
2121
2222
# Get GitHub token via the CT Changesets App

0 commit comments

Comments
 (0)