Skip to content

Commit aba2b4e

Browse files
Add echo debug
1 parent 94f4f4a commit aba2b4e

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

.github/workflows/release.yaml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,11 @@ jobs:
3636
# Verify release tag is made on the correct major.minor version branch.
3737
# The command will fail with exit code 1 if the tag is not on a valid release branch.
3838
MAJOR_MINOR=$(echo "$VERSION_NUM" | cut -d'.' -f1,2)
39-
git branch --remote --contains $COMMIT_SHA origin/$MAJOR_MINOR
40-
39+
echo "$MAJOR_MINOR"
40+
if ! git branch --remote --contains $COMMIT_SHA origin/$MAJOR_MINOR; then
41+
echo "Tag $VERSION_NUM is not on the correct branch. Skipping release."
42+
exit 78
43+
fi
4144
echo "Tag is from a valid branch."
4245
4346
- name: Download sagemaker artifacts by commit ID

0 commit comments

Comments
 (0)