Skip to content

Commit 5b2d905

Browse files
committed
chore: upgrade GitHub Actions to latest stable versions
- actions/checkout: v5 → v7 - actions/setup-python: v4/v5 → v6 - actions/setup-go: commit SHA → v6 - actions/upload-artifact: v4 → v7 - actions/download-artifact: v4 → v7 - peter-evans/create-pull-request: v7 → v8 - Remove hardcoded test API key from test-script.yaml - Fix workflow name typo in struct-on-gha.yaml (stuct → struct)
1 parent 54c5027 commit 5b2d905

10 files changed

Lines changed: 23 additions & 24 deletions

.github/workflows/deploy-pages.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,12 +28,12 @@ jobs:
2828
runs-on: ubuntu-latest
2929
steps:
3030
- name: Checkout
31-
uses: actions/checkout@v5
31+
uses: actions/checkout@v7
3232
with:
3333
fetch-depth: 0 # Needed for git-revision-date-localized plugin
3434

3535
- name: Setup Python
36-
uses: actions/setup-python@v4
36+
uses: actions/setup-python@v6
3737
with:
3838
python-version: '3.x'
3939
cache: 'pip'

.github/workflows/generate-terminal-gifs.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
runs-on: ubuntu-latest
1313
steps:
1414
- name: Checkout
15-
uses: actions/checkout@v6
15+
uses: actions/checkout@v7
1616
with:
1717
fetch-depth: 0
1818

@@ -22,7 +22,7 @@ jobs:
2222
python-version: '3.x'
2323

2424
- name: Setup Go
25-
uses: actions/setup-go@44694675825211faa026b3c33043df3e48a5fa00
25+
uses: actions/setup-go@v6
2626
with:
2727
go-version: '1.25.8'
2828

.github/workflows/major-tagging.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,5 +10,5 @@ jobs:
1010
name: Move major tag
1111
runs-on: ubuntu-latest
1212
steps:
13-
- uses: actions/checkout@v5
13+
- uses: actions/checkout@v7
1414
- uses: phwt/major-tagging-action@v1

.github/workflows/publish-pypi.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
runs-on: ubuntu-latest
1414

1515
steps:
16-
- uses: actions/checkout@v5
16+
- uses: actions/checkout@v7
1717

1818
- name: Set up Python
1919
uses: actions/setup-python@v6
@@ -47,7 +47,7 @@ jobs:
4747
run: python -m build
4848

4949
- name: Upload build artifacts
50-
uses: actions/upload-artifact@v4
50+
uses: actions/upload-artifact@v7
5151
with:
5252
name: distribution
5353
path: dist/
@@ -58,10 +58,10 @@ jobs:
5858
if: github.event_name == 'release' || (github.event_name == 'workflow_dispatch' && github.event.inputs.upload == 'true')
5959

6060
steps:
61-
- uses: actions/checkout@v5
61+
- uses: actions/checkout@v7
6262

6363
- name: Download build artifacts
64-
uses: actions/download-artifact@v4
64+
uses: actions/download-artifact@v7
6565
with:
6666
name: distribution
6767
path: dist/

.github/workflows/push-to-registry.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
2121

2222
steps:
2323
- name: Checkout repository
24-
uses: actions/checkout@v5
24+
uses: actions/checkout@v7
2525

2626
- name: Log in to the Container registry
2727
uses: docker/login-action@v3

.github/workflows/release-drafter.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
pull-requests: write
1414
steps:
1515
- name: Checkout
16-
uses: actions/checkout@v5
16+
uses: actions/checkout@v7
1717
with:
1818
fetch-depth: 0
1919
- uses: release-drafter/release-drafter@v6.1.0

.github/workflows/struct-generate.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -68,10 +68,10 @@ jobs:
6868
runs-on: ${{ inputs.runs_on }}
6969
steps:
7070
- name: Checkout
71-
uses: actions/checkout@v5
71+
uses: actions/checkout@v7
7272

7373
- name: Set up Python
74-
uses: actions/setup-python@v5
74+
uses: actions/setup-python@v6
7575
with:
7676
python-version: '3.x'
7777
cache: 'pip'
@@ -129,7 +129,7 @@ jobs:
129129
fi
130130
131131
- name: Generate PR with changes
132-
uses: peter-evans/create-pull-request@v7
132+
uses: peter-evans/create-pull-request@v8
133133
with:
134134
token: ${{ secrets.token }}
135135
commit-message: ${{ inputs.pr_title }}

.github/workflows/struct-on-gha.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: stuct-on-gha
1+
name: struct-on-gha
22

33
on:
44
workflow_dispatch:
@@ -8,10 +8,10 @@ jobs:
88
runs-on: ubuntu-latest
99
steps:
1010
- name: Checkout
11-
uses: actions/checkout@v5
11+
uses: actions/checkout@v7
1212

1313
- name: Set up Python
14-
uses: actions/setup-python@v5
14+
uses: actions/setup-python@v6
1515
with:
1616
python-version: '3.x'
1717

@@ -27,7 +27,7 @@ jobs:
2727
2828
- name: Generate PR with changes
2929
if: github.event_name == 'workflow_dispatch'
30-
uses: peter-evans/create-pull-request@v7
30+
uses: peter-evans/create-pull-request@v8
3131
with:
3232
token: ${{ secrets.GITHUB_TOKEN }}
3333
commit-message: "Run StructKit generate on repository"

.github/workflows/test-script.yaml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,7 @@ on:
88
branches:
99
- main
1010

11-
env:
12-
OPENAI_API_KEY: "my-test-key"
11+
# Removed hardcoded test API key - use secrets instead if needed
1312

1413
jobs:
1514
build:
@@ -18,10 +17,10 @@ jobs:
1817

1918
steps:
2019
- name: Checkout repository
21-
uses: actions/checkout@v5
20+
uses: actions/checkout@v7
2221

2322
- name: Set up Python 3.10
24-
uses: actions/setup-python@v5
23+
uses: actions/setup-python@v6
2524
with:
2625
python-version: '3.10'
2726
cache: pip

.github/workflows/z-pre-commit.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,6 @@ jobs:
1010
pre-commit:
1111
runs-on: ubuntu-latest
1212
steps:
13-
- uses: actions/checkout@v5
14-
- uses: actions/setup-python@v5.6.0
13+
- uses: actions/checkout@v7
14+
- uses: actions/setup-python@v6
1515
- uses: pre-commit/action@v3.0.1

0 commit comments

Comments
 (0)