Loading .gitlab-ci.yml +14 −19 Original line number Diff line number Diff line Loading @@ -52,9 +52,6 @@ release: JOB=$(basename ${JOB}) for VERSION in jobs/${JOB}/versions/*; do VERSION=$(basename ${VERSION} .md) OUT=$(curl https://gitlab.com/api/v4/projects/go2scale%2Fhub/releases/${JOB}-${VERSION} | grep '{"message":"403 Forbidden"}') if [[ $? -eq 0 ]]; then echo "Releasing ${JOB}-${VERSION}" curl --header 'Content-Type: application/json' --header "JOB-TOKEN: ${CI_JOB_TOKEN}" \ --data "{ \ \"name\": \"${JOB}-${VERSION}\", \ Loading @@ -69,8 +66,6 @@ release: } \ }" \ --request POST https://gitlab.com/api/v4/projects/go2scale%2Fhub/releases else echo "Release ${VERSION} for job ${JOB} exists" fi done done Loading Loading
.gitlab-ci.yml +14 −19 Original line number Diff line number Diff line Loading @@ -52,9 +52,6 @@ release: JOB=$(basename ${JOB}) for VERSION in jobs/${JOB}/versions/*; do VERSION=$(basename ${VERSION} .md) OUT=$(curl https://gitlab.com/api/v4/projects/go2scale%2Fhub/releases/${JOB}-${VERSION} | grep '{"message":"403 Forbidden"}') if [[ $? -eq 0 ]]; then echo "Releasing ${JOB}-${VERSION}" curl --header 'Content-Type: application/json' --header "JOB-TOKEN: ${CI_JOB_TOKEN}" \ --data "{ \ \"name\": \"${JOB}-${VERSION}\", \ Loading @@ -69,8 +66,6 @@ release: } \ }" \ --request POST https://gitlab.com/api/v4/projects/go2scale%2Fhub/releases else echo "Release ${VERSION} for job ${JOB} exists" fi done done Loading