Skip to content

Commit 1043bda

Browse files
authored
use pinned pypi package in example workflows and bump to 0.1.1 (#1)
* docs: use pypi package in example workflows * chore: pin workflow examples and bump to 0.1.1
1 parent 3ce149c commit 1043bda

6 files changed

Lines changed: 10 additions & 6 deletions

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ the repo includes:
5858
- [examples/github-actions/validate.yml](/Users/morgunov/Developer/ischemist/dev-tools/cooldown-guard/examples/github-actions/validate.yml): consumer-side validation on pull requests
5959
- [examples/github-actions/reconcile.yml](/Users/morgunov/Developer/ischemist/dev-tools/cooldown-guard/examples/github-actions/reconcile.yml): nightly cleanup that can open a pull request
6060

61-
the example workflows install from a git url placeholder. swap `your-org/your-repo` for the real repo path, or replace it with a pypi package name once published.
61+
the example workflows install `cooldown-guard` directly from pypi and pin the tool version with `COOLDOWN_GUARD_VERSION` for reproducibility.
6262

6363
## release flow
6464

examples/github-actions/reconcile.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ permissions:
1212
jobs:
1313
cleanup:
1414
runs-on: ubuntu-latest
15+
env:
16+
COOLDOWN_GUARD_VERSION: "0.1.1"
1517
steps:
1618
- uses: actions/checkout@v4
1719

@@ -24,7 +26,7 @@ jobs:
2426
python-version: "3.12"
2527

2628
- name: install cooldown-guard
27-
run: uv tool install "git+https://github.com/your-org/your-repo"
29+
run: uv tool install "cooldown-guard==${COOLDOWN_GUARD_VERSION}"
2830

2931
- name: apply cleanup if possible
3032
id: cleanup

examples/github-actions/validate.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ on:
66
jobs:
77
validate:
88
runs-on: ubuntu-latest
9+
env:
10+
COOLDOWN_GUARD_VERSION: "0.1.1"
911
steps:
1012
- uses: actions/checkout@v4
1113

@@ -18,7 +20,7 @@ jobs:
1820
python-version: "3.12"
1921

2022
- name: install cooldown-guard
21-
run: uv tool install "git+https://github.com/your-org/your-repo"
23+
run: uv tool install "cooldown-guard==${COOLDOWN_GUARD_VERSION}"
2224

2325
- name: validate ledger
2426
run: cooldown-guard validate --project .

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
44

55
[project]
66
name = "cooldown-guard"
7-
version = "0.1.0"
7+
version = "0.1.1"
88
description = "auditable uv cooldown exceptions for emergency dependency upgrades"
99
readme = "README.md"
1010
requires-python = ">=3.11"

src/cooldown_guard/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
__all__ = ["__version__"]
22

3-
__version__ = "0.1.0"
3+
__version__ = "0.1.1"

uv.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)