Commit ca0ecf19 authored by Ruben ten Hove's avatar Ruben ten Hove
Browse files

fix: only run on main

parent 246dbaab
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -14,7 +14,7 @@ gitlab:project-settings:
    AUTO_FIX: "false"
  script:
    - |
      if [ -z ${GL_TOKEN} ]; then
      if [ -z "${GL_TOKEN}" ]; then
        echo "[!] You need to set a variable called 'GL_TOKEN' with a Project Access Token with either 'read_api' or 'api' scope access."
        exit 1
      fi
@@ -54,4 +54,5 @@ gitlab:project-settings:
        echo "[+] All good!"
      fi
  needs: []
  allow_failure: true
  rules:
    - if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH