Skip to content

Commit 6c92df2

Browse files
authored
fix: bump action broken due to incorrect urls (#593)
1 parent fe627e9 commit 6c92df2

File tree

6 files changed

+14
-8
lines changed

6 files changed

+14
-8
lines changed

docs/pages/guides/gha_basic.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ tests:
115115
allow-prereleases: true
116116
117117
- name: Download uv
118-
uses: astral/setup-uv@v6
118+
uses: astral-sh/setup-uv@v6
119119
120120
- name: Test package
121121
run: uv run pytest
@@ -277,7 +277,7 @@ And many other useful ones:
277277
Make a new PR with the current changes (more options than just using `gh`).
278278
You can even auto-merge PRs with `run: gh pr merge --merge --auto "1"`
279279
afterwards.
280-
- [astral-sh/setup-uv](https://github.com/astral/setup-uv): Set up `uv`.
280+
- [astral-sh/setup-uv](https://github.com/astral-sh/setup-uv): Set up `uv`.
281281
Ultra-fast alternative to classic Python packaging solutions.
282282
- [gautamkrishnar/keepalive-workflow](https://github.com/gautamkrishnar/keepalive-workflow):
283283
Keep GitHub actions alive for more than 60 days. Not usually needed if you've

docs/pages/guides/gha_pure.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ publish:
154154
path: dist
155155
156156
- name: Generate artifact attestation for sdist and wheel
157-
uses: actions/attest-build-provenance@v2.2.3
157+
uses: actions/attest-build-provenance@v2
158158
with:
159159
subject-path: "dist/*"
160160
@@ -252,7 +252,7 @@ jobs:
252252
path: dist
253253
254254
- name: Generate artifact attestation for sdist and wheel
255-
uses: actions/attest-build-provenance@v2.2.3
255+
uses: actions/attest-build-provenance@v2
256256
with:
257257
subject-path: "dist/*"
258258

docs/pages/guides/gha_wheels.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ upload_all:
183183
merge-multiple: true
184184
185185
- name: Generate artifact attestations
186-
uses: actions/attest-build-provenance@v2.2.3
186+
uses: actions/attest-build-provenance@v2
187187
with:
188188
subject-path: "dist/*"
189189

noxfile.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
import stat
1717
import sys
1818
import tarfile
19+
import urllib.error
1920
import urllib.request
2021
import zipfile
2122
from collections.abc import Callable
@@ -431,7 +432,12 @@ def get_latest_version_tag(repo: str, old_version: str) -> dict[str, Any] | None
431432
request.add_header("X-GitHub-Api-Version", "2022-11-28")
432433
if auth:
433434
request.add_header("Authorization", f"Bearer: {auth}")
434-
response = urllib.request.urlopen(request)
435+
try:
436+
response = urllib.request.urlopen(request)
437+
except urllib.error.HTTPError as err:
438+
err.add_note(f"URL: {request.full_url}")
439+
raise
440+
435441
results = json.loads(response.read())
436442
if not results:
437443
msg = f"No results for {repo}"

{{cookiecutter.project_name}}/.github/workflows/{% if cookiecutter.__type!='compiled' %}cd.yml{% endif %}

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ jobs:
4949
path: dist
5050

5151
- name: Generate artifact attestation for sdist and wheel
52-
uses: actions/attest-build-provenance@v2.2.3
52+
uses: actions/attest-build-provenance@v2
5353
with:
5454
subject-path: "dist/*"
5555

{{cookiecutter.project_name}}/.github/workflows/{% if cookiecutter.__type=='compiled' %}cd.yml{% endif %}

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ jobs:
7676
merge-multiple: true
7777

7878
- name: Generate artifact attestations
79-
uses: actions/attest-build-provenance@v2.2.3
79+
uses: actions/attest-build-provenance@v2
8080
with:
8181
subject-path: "dist/*"
8282

0 commit comments

Comments
 (0)