Skip to content

Commit 3f6b3c2

Browse files
committed
Updated validation to only occur when target branch is main
1 parent 64301fe commit 3f6b3c2

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

.github/workflows/cre-branch-protection.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,12 +32,12 @@ jobs:
3232
echo "$CRE_CHANGED"
3333
echo ""
3434
35-
if [ "$TARGET_BRANCH" = "capabilities-development" ]; then
36-
echo "PR targets capabilities-development. CRE changes are allowed."
35+
if [ "$TARGET_BRANCH" != "main" ]; then
36+
echo "PR targets '${TARGET_BRANCH}', not 'main'. CRE changes are allowed."
3737
exit 0
3838
fi
3939
40-
echo "PR targets '${TARGET_BRANCH}' and contains cre/ changes."
40+
echo "PR targets 'main' and contains cre/ changes."
4141
echo "Verifying all CRE-modifying commits are cherry-picks from capabilities-development..."
4242
echo ""
4343

0 commit comments

Comments
 (0)