Commit 156c4511 authored by Ruben ten Hove's avatar Ruben ten Hove
Browse files

ci: dont create badges outside version tags

parent 5a821fc8
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -28,6 +28,9 @@ badge:test:
    NAME: "branch"
    MESSAGE: "${CI_COMMIT_REF_NAME}"
    COLOR: "fuchsia"
  rules:
    - if: $GL_TOKEN
      when: never

# child pipeline to unit tests all our jobs

+1 −1
Original line number Diff line number Diff line
@@ -47,7 +47,7 @@

        if [ "${STATUS_CODE:0:1}" = "2" ]; then
          echo "[+] Badge set successfully."
        elif "${STATUS_CODE}" = "403" ]; then
        elif [ "${STATUS_CODE}" = "403" ]; then
          echo "[!] Access Forbidden. Does GL_TOKEN have access to badge creation? A Personal Access Token requires at least a Maintainer user."
          exit 1
        else