diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 8555114..430df40 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -189,8 +189,8 @@ deploy-staging: - echo "Staging deploy complete." after_script: - | - apk add --no-cache curl > /dev/null 2>&1 - ISSUES=$(git log --format=%B -1 | grep -oP '#\d+' | tr -d '#' | sort -u) + apk add --no-cache curl git > /dev/null 2>&1 + ISSUES=$(git log --format=%B -1 2>/dev/null | grep -oE '#[0-9]+' | tr -d '#' | sort -u) for ISSUE in $ISSUES; do curl --silent --request POST \ --header "PRIVATE-TOKEN: ${GITLAB_PAT}" \ @@ -237,8 +237,8 @@ deploy-production: - echo "Production deploy complete." after_script: - | - apk add --no-cache curl > /dev/null 2>&1 - ISSUES=$(git log --format=%B -1 | grep -oP '#\d+' | tr -d '#' | sort -u) + apk add --no-cache curl git > /dev/null 2>&1 + ISSUES=$(git log --format=%B -1 2>/dev/null | grep -oE '#[0-9]+' | tr -d '#' | sort -u) for ISSUE in $ISSUES; do curl --silent --request POST \ --header "PRIVATE-TOKEN: ${GITLAB_PAT}" \