--- .fix:GL_TOKEN: stage: .pre image: docker.io/alpine:3 variables: GIT_STRATEGY: none JOB_NAME: project automation script: - echo "[!] For the ${JOB_NAME} job, you need to provide a Protected and Masked variable named 'GL_TOKEN' with a {Project, Group, Personal} Access Token with 'api' scope." - echo "[+] For details, see the README at https://gitlab.com/just-ci/templates#how-to-use" - exit 1 allow_failure: true rules: - if: "$CI_COMMIT_REF_PROTECTED == 'true' && $GL_TOKEN == null && $DISABLE_GL_TOKEN_CHECK == null" .release:rules: rules: - if: "$CI_COMMIT_REF_PROTECTED == 'true' && $GL_TOKEN && $CI_COMMIT_TAG == null" exists: - tbump.toml - pyproject.toml .release:install: script: # fallback to npm in case bun fails to run on old hardware - bun add --global ${NPM_PACKAGES} || npm install --global ${NPM_PACKAGES}