We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 94f4f4a commit aba2b4eCopy full SHA for aba2b4e
.github/workflows/release.yaml
@@ -36,8 +36,11 @@ jobs:
36
# Verify release tag is made on the correct major.minor version branch.
37
# The command will fail with exit code 1 if the tag is not on a valid release branch.
38
MAJOR_MINOR=$(echo "$VERSION_NUM" | cut -d'.' -f1,2)
39
- git branch --remote --contains $COMMIT_SHA origin/$MAJOR_MINOR
40
-
+ echo "$MAJOR_MINOR"
+ 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
44
echo "Tag is from a valid branch."
45
46
- name: Download sagemaker artifacts by commit ID
0 commit comments