File tree Expand file tree Collapse file tree 1 file changed +2
-11
lines changed Expand file tree Collapse file tree 1 file changed +2
-11
lines changed Original file line number Diff line number Diff line change 14
14
15
15
cd serverless
16
16
# Extract current version from the template so that we can replace it with the new version
17
- CURRENT_VERSION=$( grep -o ' Version: \d\+\.\d\+\.\d\+' template.yml | cut -d' ' -f2)
18
- echo " Debug Start"
19
- pwd
20
- GREP_VER=$( grep -o ' Version: \d\+\.\d\+\.\d\+' template.yml)
21
- echo " GREP_VER: $GREP_VER "
22
- CUT_VER=$( echo $GREP_VER | cut -d' ' -f2)
23
- echo " CUT_VER: $CUT_VER "
24
- grep --version
25
- cut --version
17
+ CURRENT_VERSION=$( grep -o ' Version: [0-9]\+\.[0-9]\+\.[0-9]\+' template.yml | cut -d' ' -f2)
26
18
27
19
# If current version is empty, exit
28
20
if [ -z " $CURRENT_VERSION " ]; then
@@ -56,7 +48,7 @@ echo "$CI_PIPELINE_SOURCE"
56
48
57
49
if [ " $PROD_RELEASE " = true ] ; then
58
50
if [ -z " $CI_COMMIT_TAG " ]; then
59
- printf " [Error] No CI_COMMIT_TAG found.\n"
51
+ printf " [Error] No CI_COMMIT_TAG found. Create a new tag for this prod release in Repo first! \n"
60
52
printf " Exiting script...\n"
61
53
exit 1
62
54
else
@@ -73,7 +65,6 @@ if [ "$PROD_RELEASE" = true ] ; then
73
65
echo " Setting origin to github.com/DataDog/datadog-cloudformation-macro.git"
74
66
git remote set-url origin https://github.com/DataDog/datadog-cloudformation-macro.git
75
67
76
- # alias gh="env -u GITHUB_TOKEN gh $1"
77
68
echo " Checking git auth status"
78
69
gh auth status
79
70
You can’t perform that action at this time.
0 commit comments