Skip to content

Commit eff8d53

Browse files
committed
fix: don't pick up beta tags for GHA
Signed-off-by: Henry Schreiner <henryschreineriii@gmail.com>
1 parent 5522f5b commit eff8d53

10 files changed

Lines changed: 19 additions & 18 deletions

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ repos:
2929
additional_dependencies: [black==24.*]
3030

3131
- repo: https://github.com/astral-sh/ruff-pre-commit
32-
rev: "v0.14.3"
32+
rev: "v0.14.4"
3333
hooks:
3434
- id: ruff-check
3535
args: ["--fix", "--show-fixes"]

docs/pages/guides/gha_basic.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ lint:
6666
name: Lint
6767
runs-on: ubuntu-latest
6868
steps:
69-
- uses: actions/checkout@v6-beta
69+
- uses: actions/checkout@v5
7070
- uses: actions/setup-python@v6
7171
with:
7272
python-version: "3.x"
@@ -104,7 +104,7 @@ tests:
104104
- "3.14"
105105
name: Check Python ${{ matrix.python-version }}
106106
steps:
107-
- uses: actions/checkout@v6-beta
107+
- uses: actions/checkout@v5
108108
with:
109109
fetch-depth: 0 # Only needed if using setuptools-scm
110110
@@ -516,7 +516,7 @@ jobs:
516516
# more here if you have more situations to detect
517517
518518
steps:
519-
- uses: actions/checkout@v6-beta
519+
- uses: actions/checkout@v5
520520
521521
- name: Changed test-related files
522522
if: github.event_name == 'pull_request'

docs/pages/guides/gha_pure.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ the name "CI/CD", you can just combine the two `on` dicts.
7070
dist:
7171
runs-on: ubuntu-latest
7272
steps:
73-
- uses: actions/checkout@v6-beta
73+
- uses: actions/checkout@v5
7474
with:
7575
fetch-depth: 0
7676
@@ -124,7 +124,7 @@ later in the upload action for the release job, as well).
124124
>
125125
> ```yaml
126126
> steps:
127-
> - uses: actions/checkout@v6-beta
127+
> - uses: actions/checkout@v5
128128
> - uses: hynek/build-and-inspect-python-package@v2
129129
> ```
130130
>
@@ -229,7 +229,7 @@ jobs:
229229
dist:
230230
runs-on: ubuntu-latest
231231
steps:
232-
- uses: actions/checkout@v6-beta
232+
- uses: actions/checkout@v5
233233
with:
234234
fetch-depth: 0
235235
@@ -282,7 +282,7 @@ jobs:
282282
dist:
283283
runs-on: ubuntu-latest
284284
steps:
285-
- uses: actions/checkout@v6-beta
285+
- uses: actions/checkout@v5
286286
with:
287287
fetch-depth: 0
288288

docs/pages/guides/gha_wheels.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ make_sdist:
7979
name: Make SDist
8080
runs-on: ubuntu-latest
8181
steps:
82-
- uses: actions/checkout@v6-beta
82+
- uses: actions/checkout@v5
8383
with:
8484
fetch-depth: 0 # Optional, use if you use setuptools_scm
8585
submodules: true # Optional, use if you have submodules
@@ -120,7 +120,7 @@ build_wheels:
120120
- macos-latest
121121
122122
steps:
123-
- uses: actions/checkout@v6-beta
123+
- uses: actions/checkout@v5
124124
with:
125125
fetch-depth: 0
126126
submodules: true

docs/pages/guides/style.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ Here is the snippet to add the formatter to your `.pre-commit-config.yml`
111111

112112
```yaml
113113
- repo: https://github.com/astral-sh/ruff-pre-commit
114-
rev: "v0.14.3"
114+
rev: "v0.14.4"
115115
hooks:
116116
# id: ruff-check would go here if using both
117117
- id: ruff-format
@@ -201,7 +201,7 @@ pre-commit hook.
201201
202202
```yaml
203203
- repo: https://github.com/astral-sh/ruff-pre-commit
204-
rev: "v0.14.3"
204+
rev: "v0.14.4"
205205
hooks:
206206
- id: ruff-check
207207
args: ["--fix", "--show-fixes"]

noxfile.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -481,6 +481,7 @@ def get_latest_version_tag(repo: str, old_version: str) -> dict[str, Any] | None
481481
for x in results
482482
if x["name"].count(".") == old_version.count(".")
483483
and x["name"].startswith("v") == old_version.startswith("v")
484+
and "beta" not in x["name"]
484485
]
485486
if tags:
486487
return tags[0] # type: ignore[no-any-return]

{{cookiecutter.project_name}}/.github/workflows/ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ jobs:
2222
name: Format
2323
runs-on: ubuntu-latest
2424
steps:
25-
- uses: actions/checkout@v6-beta
25+
- uses: actions/checkout@v5
2626
with:
2727
fetch-depth: 0
2828
- uses: actions/setup-python@v6
@@ -52,7 +52,7 @@ jobs:
5252
runs-on: ubuntu-latest
5353

5454
steps:
55-
- uses: actions/checkout@v6-beta
55+
- uses: actions/checkout@v5
5656
with:
5757
fetch-depth: 0
5858

{{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
@@ -25,7 +25,7 @@ jobs:
2525
runs-on: ubuntu-latest
2626

2727
steps:
28-
- uses: actions/checkout@v6-beta
28+
- uses: actions/checkout@v5
2929
with:
3030
fetch-depth: 0
3131

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ jobs:
2323
name: Make SDist
2424
runs-on: ubuntu-latest
2525
steps:
26-
- uses: actions/checkout@v6-beta
26+
- uses: actions/checkout@v5
2727
with:
2828
fetch-depth: 0
2929

@@ -50,7 +50,7 @@ jobs:
5050
- macos-latest
5151

5252
steps:
53-
- uses: actions/checkout@v6-beta
53+
- uses: actions/checkout@v5
5454
with:
5555
fetch-depth: 0
5656

{{cookiecutter.project_name}}/.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ repos:
4242
args: [--prose-wrap=always]
4343

4444
- repo: https://github.com/astral-sh/ruff-pre-commit
45-
rev: "v0.14.3"
45+
rev: "v0.14.4"
4646
hooks:
4747
- id: ruff-check
4848
args: ["--fix", "--show-fixes"]

0 commit comments

Comments
 (0)