---
include:
  - remote: https://jobs.just-ci.dev/v6.31.3/project-automation/workflow.yml
  - remote: https://jobs.just-ci.dev/v6.31.3/project-automation/find-next-release.yml
  - remote: https://jobs.just-ci.dev/v6.31.3/project-automation/gitlab/recommended.yml
  - remote: https://jobs.just-ci.dev/v6.31.3/project-automation/semantic-release.yml
  - remote: https://jobs.just-ci.dev/v6.31.3/project-automation/generic.yaml
  - remote: https://jobs.just-ci.dev/v6.31.3/project-automation/tbump.yml
  - remote: https://jobs.just-ci.dev/v6.31.3/project-automation/update-check.yml

update:check:ci-templates:
  extends: .update-check
  variables:
    UPDATE_CHECK_CURRENT_VERSION: v6.31.3
    UPDATE_CHECK_REPOSITORY: https://gitlab.com/just-ci/templates.git
    UPDATE_CHECK_NAME: Just CI templates

tbump:
  extends:
    - .release:rules
  needs:
    - find-next-release

tbump:dry-run:
  stage: test
  extends: tbump
  variables:
    TBUMP_NEXT_VERSION: 99.99.99
  needs: []
  artifacts: null # So we don't interfere with subsequent jobs
  rules:
    - if: $CI_COMMIT_REF_NAME != $CI_DEFAULT_BRANCH
      exists:
        - tbump.toml
        - pyproject.toml
