Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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'
```
Expand Down
2 changes: 1 addition & 1 deletion action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -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'
```
Expand Down
4 changes: 2 additions & 2 deletions docs/providers/github.md
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down Expand Up @@ -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 }}
```
Expand Down
7 changes: 3 additions & 4 deletions docs/providers/gitlab.md
Original file line number Diff line number Diff line change
Expand Up @@ -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'
```
Expand Down Expand Up @@ -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,
Expand Down
2 changes: 1 addition & 1 deletion templates/semvertag.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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)
2 changes: 1 addition & 1 deletion tests/test_ci_descriptor_gate.py
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down
Loading