Commit d47e4108 authored by Federico Falconieri's avatar Federico Falconieri
Browse files

Merge branch 'hoverht-master-patch-41591' into 'master'

ci: show error on missing GL_TOKEN

See merge request ci/templates!115
parents 87903804 59745335
Loading
Loading
Loading
Loading
+0 −11
Original line number Diff line number Diff line
@@ -141,14 +141,3 @@ semantic-release:dry-run:
    - if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
      when: never
    - when: always

python:semantic-release:version:dry-run:
  extends: python:semantic-release:version
  variables:
    EXTRA_ARGS: "--noop"
  rules:
    - if: $CI_COMMIT_TAG
      when: never
    - if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
      when: never
    - when: always
+5 −0
Original line number Diff line number Diff line
@@ -12,6 +12,11 @@ semantic-release:
  variables:
    EXTRA_ARGS: ""
  script:
    - |
      if [ -z "${GL_TOKEN}" ]; then
        echo "[!] You need to set a GL_TOKEN variable with an api scope project access token."
        echo "[!] This job will fail to push changes to the repository"
      fi
    - |
      if ! test -f .releaserc; then
        echo "[!] No '.releaserc' file found in the root of your project."