Skip to content

Commit 0267095

Browse files
authored
πŸ› fix(ci): pass required release inputs (#23)
1 parent 1007a83 commit 0267095

2 files changed

Lines changed: 15 additions & 0 deletions

File tree

β€Ž.github/workflows/release.yamlβ€Ž

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,9 @@ jobs:
1111
uses: tox-dev/github-workflows/.github/workflows/validate-python-release.yaml@801969505384f96d16882e224e98a74bffd09d21 # v0.4.1
1212
permissions:
1313
contents: read
14+
with:
15+
changelog: docs/changelog.rst
16+
artifact-base-url: https://pypi.org/project/release-creator/
1417
previous:
1518
runs-on: ubuntu-26.04
1619
permissions:
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
"""The tagged release must satisfy the pinned reusable workflow interface."""
2+
3+
lazy from pathlib import Path
4+
5+
lazy import yaml
6+
7+
8+
def test_build_uses_required_inputs_of_pinned_validator() -> None:
9+
workflow = yaml.safe_load((Path(__file__).resolve().parents[2] / ".github/workflows/release.yaml").read_text())
10+
build = workflow["jobs"]["build"]
11+
assert build["uses"].endswith("@801969505384f96d16882e224e98a74bffd09d21")
12+
assert {"changelog", "artifact-base-url"} <= build["with"].keys()

0 commit comments

Comments
Β (0)