Skip to content
This repository was archived by the owner on Jun 11, 2025. It is now read-only.

Commit fd2e0c0

Browse files
committed
improve tag script
1 parent cdd10db commit fd2e0c0

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ jobs:
6565

6666
- stage: Release beta tag
6767
if: branch = master AND type = push OR (tag =~ .*beta.*)
68-
script: ./scripts/git-tag-beta.sh
68+
script: ./scripts/git-tag.sh
6969

7070
- stage: trigger ADF
7171
name: trigger ADF
Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,11 @@
33
if [[ $TRAVIS_BRANCH == "master" ]]; then
44
TAG_VERSION=$(grep -m1 version package.json | awk '{ print $2 }' | sed 's/[", ]//g')
55
else
6-
TAG_VERSION=$(cat ../package.json | grep version | head -1 | awk -F= "{ print $2 }" | sed 's/[version:,\",]//g' | tr -d '[[:space:]]')
6+
TAG_VERSION=$(cat package.json | grep version | head -1 | awk -F= "{ print $2 }" | sed 's/[version:,\",]//g' | tr -d '[[:space:]]')
77
fi;
88

9+
echo $TAG_VERSION
10+
911
echo "git tag -a ${VERSION} -m ${VERSION}"
1012
git config --local user.name "alfresco-build"
1113
git config --local user.email "[email protected]"

0 commit comments

Comments
 (0)