Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Miroslav Kratochvil
jekyll-theme-lcsb-default
Commits
1189c9d6
Commit
1189c9d6
authored
Apr 08, 2020
by
Jacek Lebioda
Browse files
chore: add git user/email to ci/cd
parent
c60804ab
Changes
1
Hide whitespace changes
Inline
Side-by-side
.gitlab-ci.yml
View file @
1189c9d6
...
...
@@ -49,6 +49,10 @@ auto-tag:
# Make sure that it is on latest, otherwise exit. THIS IS A WORKAROUND, AS HAVING BOTH ONLY AND RULES IS NOT POSSIBLE
-
'
[[
"${CI_COMMIT_BRANCH:-1}"
==
"$TARGET_BRANCH"
]]
&&
echo
"On
correct
branch
($CI_COMMIT_BRANCH)"
||
exit
0'
# Set correct git user and email
-
git config user.name $GIT_USER
-
git config user.email $GIT_EMAIL
# Make sure that the version exists and is correct, and put it in envvar
-
cat $VERSION_FILE | grep "VERSION" | tr -d A-z\"\= | tr -d ' '
-
VERSION=`cat $VERSION_FILE | grep "VERSION" | tr -d A-z\"\= | tr -d ' '`
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment