diff --git a/README.md b/README.md index bd152a9..7397943 100644 --- a/README.md +++ b/README.md @@ -46,7 +46,7 @@ semvertag: before_script: - pip install --quiet 'uv>=0.4,<1' script: - - uvx 'semvertag>=0.5.0,<1' tag + - uvx 'semvertag>=0.10.0,<1' tag rules: - if: '$CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH' ``` diff --git a/action.yml b/action.yml index 0dc58c0..f9d6211 100644 --- a/action.yml +++ b/action.yml @@ -48,7 +48,7 @@ runs: if [ "${{ inputs.dry-run }}" = "true" ]; then dry_run_flag='--dry-run'; fi # `$dry_run_flag` is intentionally unquoted: empty value collapses # to no argument; non-empty expands to the literal `--dry-run`. - result=$(uvx 'semvertag>=0.5.0,<1' tag --json $dry_run_flag) + result=$(uvx 'semvertag>=0.10.0,<1' tag --json $dry_run_flag) printf '%s\n' "$result" # Normalize the CLI's internal status to a stable consumer-facing enum: # `created`, or `no-bump` for any other status (`no_tags`, `dry_run`, a diff --git a/docs/index.md b/docs/index.md index f31aca8..8227d73 100644 --- a/docs/index.md +++ b/docs/index.md @@ -56,7 +56,7 @@ semvertag: before_script: - pip install --quiet 'uv>=0.4,<1' script: - - uvx 'semvertag>=0.1,<1' tag + - uvx 'semvertag>=0.10.0,<1' tag rules: - if: '$CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH' ``` diff --git a/docs/providers/github.md b/docs/providers/github.md index 8ed2e52..bde12d7 100644 --- a/docs/providers/github.md +++ b/docs/providers/github.md @@ -152,7 +152,7 @@ CLI's `status` field is `dry_run`; the action surface normalizes it to You can also run this locally without the action: ```bash -uvx 'semvertag>=0.5.0' tag --dry-run --json +uvx 'semvertag>=0.10.0,<1' tag --dry-run --json ``` Output (example): @@ -237,7 +237,7 @@ jobs: with: python-version: "3.13" - run: pip install --quiet --no-cache-dir 'uv>=0.4,<1' - - run: uvx 'semvertag>=0.5.0,<1' tag + - run: uvx 'semvertag>=0.10.0,<1' tag env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} ``` diff --git a/docs/providers/gitlab.md b/docs/providers/gitlab.md index f9eb539..496c191 100644 --- a/docs/providers/gitlab.md +++ b/docs/providers/gitlab.md @@ -33,7 +33,7 @@ semvertag: before_script: - pip install --quiet --no-cache-dir 'uv>=0.4,<1' script: - - uvx 'semvertag>=0.1,<1' tag + - uvx 'semvertag>=0.10.0,<1' tag rules: - if: '$CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH' ``` @@ -79,14 +79,13 @@ block on the `include:`. The values and default match ## Dry run Pass `--dry-run` to compute the bump and report the planned tag -without pushing it. It needs semvertag 0.5.0 or later, so raise the -floor in the job: +without pushing it: ```yaml semvertag: # ... script: - - uvx 'semvertag>=0.5.0,<1' tag --dry-run + - uvx 'semvertag>=0.10.0,<1' tag --dry-run ``` The Catalog component exposes this as a boolean `dry-run` input, diff --git a/templates/semvertag.yml b/templates/semvertag.yml index 40bbc96..eacadb9 100644 --- a/templates/semvertag.yml +++ b/templates/semvertag.yml @@ -18,4 +18,4 @@ semvertag: before_script: - pip install --quiet --no-cache-dir 'uv>=0.4,<1' script: - - uvx 'semvertag>=0.5.0,<1' tag $(if $[[ inputs.dry-run ]]; then echo --dry-run; fi) + - uvx 'semvertag>=0.10.0,<1' tag $(if $[[ inputs.dry-run ]]; then echo --dry-run; fi) diff --git a/tests/test_ci_descriptor_gate.py b/tests/test_ci_descriptor_gate.py index 1f8762d..b2b251f 100644 --- a/tests/test_ci_descriptor_gate.py +++ b/tests/test_ci_descriptor_gate.py @@ -153,7 +153,7 @@ def test_unwired_dry_run_fails(tmp_path: pathlib.Path, shipped_descriptor_docs: def test_pre_dry_run_semvertag_floor_fails(tmp_path: pathlib.Path, shipped_descriptor_docs: list[typing.Any]) -> None: """Negative: a semvertag floor below 0.5.0 could resolve a CLI without --dry-run.""" spec, body = shipped_descriptor_docs - body["semvertag"]["script"] = [body["semvertag"]["script"][0].replace(">=0.5.0", ">=0.1")] + body["semvertag"]["script"] = [body["semvertag"]["script"][0].replace(">=0.10.0", ">=0.1")] bad = _write_descriptor(tmp_path, [spec, body]) with pytest.raises(DescriptorGateError, match=r"semvertag floor must be >= 0\.5\.0"): validate(str(bad))