@@ -7,8 +7,8 @@ if [ "$CI" != "true" ] || [ "$GITHUB_ACTIONS" != "true" ]; then
7
7
fi
8
8
9
9
# Ensure that the tag is named properly as a semver tag
10
- if [[ ! " $TRAVIS_TAG " =~ ^v[0-9]+\. [0-9]+\. [0-9]+$ ]]; then
11
- echo " Tag $TRAVIS_TAG is NOT a valid semver tag (vX.Y.Z), please delete this tag."
10
+ if [[ ! " $GITHUB_REF " =~ ^refs/tags/ v[0-9]+\. [0-9]+\. [0-9]+$ ]]; then
11
+ echo " Tag $GITHUB_REF is NOT a valid semver tag (vX.Y.Z), please delete this tag."
12
12
exit 1
13
13
fi
14
14
@@ -36,11 +36,15 @@ if [ "$GITHUB_REF" != "refs/tags/$EXPECTED_TAG" ]; then
36
36
fi
37
37
38
38
# Ensure that the tag commit is an ancestor of master
39
- git fetch origin master:master
39
+ git fetch origin master:master 2>&1 | head -n 10 # Truncate excessive fetch output
40
40
git merge-base --is-ancestor $GITHUB_REF master
41
41
if [ $? -ne 0 ]; then
42
42
echo " Tag $GITHUB_REF is NOT an ancestor of master!"
43
- echo ' Please delete this tag and instead create a tag off a master commit.'
43
+ echo ' Cannot publish ParSeq using a non-master commit, please delete this tag.'
44
+ echo ' If you still want to publish, please run the release script using a master commit.'
45
+ echo ' See below for guidance on how to properly use the release script:'
46
+ echo ' '
47
+ cat ./scripts/help-text/release.txt
44
48
exit 1
45
49
fi
46
50
66
70
67
71
echo ' Failed to publish to JFrog Artifactory.'
68
72
echo " You can check https://linkedin.jfrog.io/ui/repos/tree/General/parseq to ensure that $VERSION is not present."
69
- echo ' Please retry the upload by restarting this Travis job.'
73
+ echo ' Please retry the upload by restarting this GitHub Actions job.'
70
74
71
75
exit 1
72
76
fi
0 commit comments