Skip to content

Commit e6d0da4

Browse files
committed
chore: update publish workflow to clarify version input requirements and set fetch-depth for checkout steps
1 parent a74592e commit e6d0da4

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

.github/workflows/publish.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ on:
44
workflow_dispatch:
55
inputs:
66
version:
7-
description: 'Version to publish (must match package version)'
7+
description: 'PEP 440 version only, e.g. 1.0.0 (not v1.0.0 — must match __version__ in src/yokedcache/__init__.py)'
88
required: true
99
type: string
1010
environment:
@@ -38,6 +38,8 @@ jobs:
3838
steps:
3939
- name: Checkout
4040
uses: actions/checkout@v4
41+
with:
42+
fetch-depth: 0
4143

4244
- name: Set up Python
4345
uses: actions/setup-python@v5
@@ -108,6 +110,8 @@ jobs:
108110
steps:
109111
- name: Checkout
110112
uses: actions/checkout@v4
113+
with:
114+
fetch-depth: 0
111115

112116
- name: Set up Python
113117
uses: actions/setup-python@v5

0 commit comments

Comments
 (0)