Skip to content

Commit

Permalink
fix(tests): adjust wrong test
Browse files Browse the repository at this point in the history
  • Loading branch information
nqb committed Mar 17, 2023
1 parent 49cedaa commit b0a427d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ci/lib/check/run-pipeline-if-necessary.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,8 @@ configure_and_check() {
COMMIT_REF_NAME_ENCODED=$(urlencode "$CI_COMMIT_REF_NAME")
COMMIT_SHA=$(git rev-parse HEAD~0)

[ -n "${GITLAB_API_TOKEN}" ] && die "not set: GITLAB_API_TOKEN"
# if no token defined, we die
[ -n "${GITLAB_API_TOKEN}" ] || die "not set: GITLAB_API_TOKEN"

# get SHA of latest pipeline scheduled with status=succes for that branch
SHA_LATEST_PIPELINE=$(curl --header "PRIVATE-TOKEN: ${GITLAB_API_TOKEN}" \
Expand Down

0 comments on commit b0a427d

Please sign in to comment.