Skip to content

Commit f8db15f

Browse files
authored
ci: raise the semvertag floor to 0.10.0 in the wrappers and docs (#100)
1 parent 5e97dca commit f8db15f

7 files changed

Lines changed: 10 additions & 11 deletions

File tree

‎README.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ semvertag:
4646
before_script:
4747
- pip install --quiet 'uv>=0.4,<1'
4848
script:
49-
- uvx 'semvertag>=0.5.0,<1' tag
49+
- uvx 'semvertag>=0.10.0,<1' tag
5050
rules:
5151
- if: '$CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH'
5252
```

‎action.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ runs:
4848
if [ "${{ inputs.dry-run }}" = "true" ]; then dry_run_flag='--dry-run'; fi
4949
# `$dry_run_flag` is intentionally unquoted: empty value collapses
5050
# to no argument; non-empty expands to the literal `--dry-run`.
51-
result=$(uvx 'semvertag>=0.5.0,<1' tag --json $dry_run_flag)
51+
result=$(uvx 'semvertag>=0.10.0,<1' tag --json $dry_run_flag)
5252
printf '%s\n' "$result"
5353
# Normalize the CLI's internal status to a stable consumer-facing enum:
5454
# `created`, or `no-bump` for any other status (`no_tags`, `dry_run`, a

‎docs/index.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ semvertag:
5656
before_script:
5757
- pip install --quiet 'uv>=0.4,<1'
5858
script:
59-
- uvx 'semvertag>=0.1,<1' tag
59+
- uvx 'semvertag>=0.10.0,<1' tag
6060
rules:
6161
- if: '$CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH'
6262
```

‎docs/providers/github.md‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ CLI's `status` field is `dry_run`; the action surface normalizes it to
152152
You can also run this locally without the action:
153153

154154
```bash
155-
uvx 'semvertag>=0.5.0' tag --dry-run --json
155+
uvx 'semvertag>=0.10.0,<1' tag --dry-run --json
156156
```
157157

158158
Output (example):
@@ -237,7 +237,7 @@ jobs:
237237
with:
238238
python-version: "3.13"
239239
- run: pip install --quiet --no-cache-dir 'uv>=0.4,<1'
240-
- run: uvx 'semvertag>=0.5.0,<1' tag
240+
- run: uvx 'semvertag>=0.10.0,<1' tag
241241
env:
242242
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
243243
```

‎docs/providers/gitlab.md‎

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ semvertag:
3333
before_script:
3434
- pip install --quiet --no-cache-dir 'uv>=0.4,<1'
3535
script:
36-
- uvx 'semvertag>=0.1,<1' tag
36+
- uvx 'semvertag>=0.10.0,<1' tag
3737
rules:
3838
- if: '$CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH'
3939
```
@@ -79,14 +79,13 @@ block on the `include:`. The values and default match
7979
## Dry run
8080

8181
Pass `--dry-run` to compute the bump and report the planned tag
82-
without pushing it. It needs semvertag 0.5.0 or later, so raise the
83-
floor in the job:
82+
without pushing it:
8483

8584
```yaml
8685
semvertag:
8786
# ...
8887
script:
89-
- uvx 'semvertag>=0.5.0,<1' tag --dry-run
88+
- uvx 'semvertag>=0.10.0,<1' tag --dry-run
9089
```
9190

9291
The Catalog component exposes this as a boolean `dry-run` input,

‎templates/semvertag.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,4 @@ semvertag:
1818
before_script:
1919
- pip install --quiet --no-cache-dir 'uv>=0.4,<1'
2020
script:
21-
- uvx 'semvertag>=0.5.0,<1' tag $(if $[[ inputs.dry-run ]]; then echo --dry-run; fi)
21+
- uvx 'semvertag>=0.10.0,<1' tag $(if $[[ inputs.dry-run ]]; then echo --dry-run; fi)

‎tests/test_ci_descriptor_gate.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ def test_unwired_dry_run_fails(tmp_path: pathlib.Path, shipped_descriptor_docs:
153153
def test_pre_dry_run_semvertag_floor_fails(tmp_path: pathlib.Path, shipped_descriptor_docs: list[typing.Any]) -> None:
154154
"""Negative: a semvertag floor below 0.5.0 could resolve a CLI without --dry-run."""
155155
spec, body = shipped_descriptor_docs
156-
body["semvertag"]["script"] = [body["semvertag"]["script"][0].replace(">=0.5.0", ">=0.1")]
156+
body["semvertag"]["script"] = [body["semvertag"]["script"][0].replace(">=0.10.0", ">=0.1")]
157157
bad = _write_descriptor(tmp_path, [spec, body])
158158
with pytest.raises(DescriptorGateError, match=r"semvertag floor must be >= 0\.5\.0"):
159159
validate(str(bad))

0 commit comments

Comments
 (0)