Commit e16ee8e8 authored by Zebedee Nicholls's avatar Zebedee Nicholls
Browse files

Merge branch 'revert-input-usage' into 'main'

Revert input usage

See merge request !22
parents 46b8a862 42231adb
Loading
Loading
Loading
Loading
Loading
+13 −11
Changes for .gitlab-ci.yml: 13 added lines, 11 removed lines.
Original line number Diff line number Diff line
spec:
  inputs:
    bump-rule:
      default: patch
      description: Bump rule to use with `uv version --bump`. See `uv version --help` or https://docs.astral.sh/uv/reference/cli/#uv-version for details.
      options: ["patch", "minor", "major", "stable", "alpha", "beta", "rc", "post", "dev"]
      type: string

---

# Based on
# https://gitlab.com/gitlab-org/gitlab/-/tree/master/lib/gitlab/ci/templates/Python.gitlab-ci.yml
stages:
@@ -87,6 +77,19 @@ bump:version:
  variables:
    CI_EMAIL: ci-runner@copier-basic-python-repository.invalid
    CI_USERNAME: gitlab-ci
    BUMP_RULE:
      value: "patch"
      # description: "Bump rule to use with `uv version --bump`. See `uv version --help` or https://docs.astral.sh/uv/reference/cli/#uv-version for details."
      # options:
      #   - "patch"
      #   - "minor"
      #   - "major"
      #   - "stable"
      #   - "alpha"
      #   - "beta"
      #   - "rc"
      #   - "post"
      #   - "dev"
  when: manual
  script:
    # SSH setup
@@ -106,7 +109,6 @@ bump:version:
    - git checkout -b $CI_COMMIT_REF_NAME
    # Bump
    - BASE_VERSION=`uv version --short`
    - BUMP_RULE="$[[ inputs.bump-rule ]]"
    - NEW_VERSION=`uv version --bump $BUMP_RULE --short --no-sync`
    - echo "Bumping version $BASE_VERSION > $NEW_VERSION"
    - uv sync --group dev
+0 −1
Changes for .pre-commit-config.yaml: 0 added lines, 1 removed line.
Original line number Diff line number Diff line
@@ -11,7 +11,6 @@ repos:
      - id: check-merge-conflict
      - id: check-symlinks
      - id: check-yaml
        args: [--allow-multiple-documents]
      - id: debug-statements
      - id: detect-private-key
      - id: end-of-file-fixer
+1 −0
Changes for changelog/22.trivial.md: 1 added line, 0 removed lines.
Original line number Diff line number Diff line
Realised that using inputs would never work hence reverted