Skip to content

Commit 53824b1

Browse files
Fix outdated GitHub workflows
Applied recommandations from https://rhysd.github.io/actionlint/
1 parent c56b453 commit 53824b1

File tree

3 files changed

+13
-13
lines changed

3 files changed

+13
-13
lines changed

.github/workflows/_code_checks.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,17 +21,17 @@ jobs:
2121

2222
steps:
2323
- name: checkout current commit
24-
uses: actions/checkout@v2
24+
uses: actions/checkout@v4
2525
if: ${{ inputs.ref == 'default' }}
2626

2727
- name: checkout main
28-
uses: actions/checkout@v2
28+
uses: actions/checkout@v4
2929
with:
3030
ref: ${{ inputs.ref }}
3131
if: ${{ inputs.ref != 'default' }}
3232

3333
- name: install python
34-
uses: actions/setup-python@v2
34+
uses: actions/setup-python@v5
3535
with:
3636
python-version: ${{ matrix.python-version }}
3737

@@ -48,9 +48,9 @@ jobs:
4848
run: make test
4949

5050
- name: codeql_init
51-
uses: github/codeql-action/init@v1
51+
uses: github/codeql-action/init@v3
5252
with:
5353
languages: 'python'
5454

5555
- name: codeql_analyze
56-
uses: github/codeql-action/analyze@v1
56+
uses: github/codeql-action/analyze@v3

.github/workflows/check_pr_code.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
n_commits: ${{ steps.count_commits.outputs.n_commits }}
1515
steps:
1616
- name: checkout current branch
17-
uses: actions/checkout@v2
17+
uses: actions/checkout@v4
1818
with:
1919
fetch-depth: 0
2020

@@ -23,7 +23,7 @@ jobs:
2323
run: |
2424
git fetch
2525
N_COMMITS=$(git rev-list origin/main.. --count)
26-
echo "::set-output name=n_commits::${N_COMMITS}"
26+
echo "n_commits=${N_COMMITS}" >> $GITHUB_OUTPUT
2727
2828
add_empty_commit_if_only_one:
2929
needs: count_commits
@@ -33,7 +33,7 @@ jobs:
3333
steps:
3434

3535
- name: checkout current branch
36-
uses: actions/checkout@v2
36+
uses: actions/checkout@v4
3737
with:
3838
repository: ${{ github.event.pull_request.head.repo.full_name }}
3939
ref: ${{ github.event.pull_request.head.ref }}

.github/workflows/release.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,10 @@ jobs:
1919
startsWith(github.event.head_commit.message, '[PATCH]')
2020
steps:
2121

22-
- uses: actions/checkout@v2
22+
- uses: actions/checkout@v4
2323

2424
- name: Set up Python
25-
uses: actions/setup-python@v2
25+
uses: actions/setup-python@v5
2626
with:
2727
python-version: '3.8'
2828

@@ -71,7 +71,7 @@ jobs:
7171
steps:
7272

7373
- name: Checkout main
74-
uses: actions/checkout@v2
74+
uses: actions/checkout@v4
7575
with:
7676
ref: main
7777
fetch-depth: 0 # fetches entire history for all branches and tags
@@ -99,12 +99,12 @@ jobs:
9999
steps:
100100

101101
- name: Checkout main
102-
uses: actions/checkout@v2
102+
uses: actions/checkout@v4
103103
with:
104104
ref: main
105105

106106
- name: Set up Python
107-
uses: actions/setup-python@v2
107+
uses: actions/setup-python@v5
108108
with:
109109
python-version: '3.8'
110110

0 commit comments

Comments
 (0)