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

fix: moves badge:semantic-release job

putting badge:semantic-release into semantic-release.yml breaks
direct includes of semantic-release.yml
parent 16100055
Loading
Loading
Loading
Loading
+14 −0
Original line number Diff line number Diff line
@@ -67,3 +67,17 @@
  allow_failure: true
  rules:
    - if: '$CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH'

badge:semantic-release:
  extends: .badge
  before_script:  # We can't do this in rules as this variable is created during the pipeline run.
    - |
      if [ -z "${TBUMP_NEXT_VERSION}" ]; then
        echo "[!] No next version."
        exit 0
      fi
  variables:
    NAME: "version"
    VALUE: "v${TBUMP_NEXT_VERSION}"
    COLOR: "green"
    URL: "${CI_PROJECT_URL}/tags/v${TBUMP_NEXT_VERSION}"
+0 −14
Original line number Diff line number Diff line
@@ -41,17 +41,3 @@ semantic-release:
    - semantic-release ${EXTRA_ARGS}
  rules:
    - if: '$GL_TOKEN'

badge:semantic-release:
  extends: .badge
  before_script:  # We can't do this in rules as this variable is created during the pipeline run.
    - |
      if [ -z "${TBUMP_NEXT_VERSION}" ]; then
        echo "[!] No next version."
        exit 0
      fi
  variables:
    NAME: "version"
    VALUE: "v${TBUMP_NEXT_VERSION}"
    COLOR: "green"
    URL: "${CI_PROJECT_URL}/tags/v${TBUMP_NEXT_VERSION}"