mirror of
https://gitlab.com/psuapp/psu.git
synced 2024-08-30 18:12:34 +00:00
Small fix, use local variable in helpers.sh
This commit is contained in:
parent
4b98fba103
commit
01cb6cc1b7
@ -127,7 +127,7 @@ function get_git_last_stable_tag() {
|
||||
# See: https://gitlab.com/help/user/project/pipelines/schedules
|
||||
function git_reset_from_last_stable_tag() {
|
||||
if [ "$GIT_RESET_LAST_STABLE_TAG" == "true" ]; then
|
||||
git_last_stable_tag="$(get_git_last_stable_tag)"
|
||||
local git_last_stable_tag="$(get_git_last_stable_tag)"
|
||||
if [ -n "$git_last_stable_tag" ]; then
|
||||
export CI_COMMIT_REF_PROTECTED="true"
|
||||
export CI_COMMIT_TAG="$git_last_stable_tag"
|
||||
|
Loading…
x
Reference in New Issue
Block a user