Skip to content

Commit 6fef5f2

Browse files
authored
Update GH actions (#8743)
* Update GH actions Deprecated actions changed * Update in all workflows * More actions updated
1 parent 466547e commit 6fef5f2

File tree

4 files changed

+12
-12
lines changed

4 files changed

+12
-12
lines changed

.github/workflows/build.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ jobs:
1010
run: |
1111
mkdir -p ./pr
1212
echo ${{ github.event.number }} > ./pr/NR
13-
- uses: actions/upload-artifact@v2
13+
- uses: actions/upload-artifact@v4
1414
if: github.event_name == 'pull_request'
1515
with:
1616
name: pr
@@ -20,7 +20,7 @@ jobs:
2020
#
2121
# We need to fetch more than one commit to be able to access HEAD^2 in case
2222
# of a pull request
23-
- uses: actions/checkout@v3
23+
- uses: actions/checkout@v4
2424
with:
2525
fetch-depth: 10
2626
# In case of a push event, the commit we care about is simply HEAD.
@@ -46,7 +46,7 @@ jobs:
4646
echo "$(git log --format=%B -n 1 HEAD^2)" >> $GITHUB_ENV
4747
echo "EOF" >> $GITHUB_ENV
4848
echo "PREVIOUS_COMMIT=$(git log --format=%H -n 1 HEAD^2~1)" >> $GITHUB_ENV
49-
- uses: actions/setup-python@v4
49+
- uses: actions/setup-python@v5
5050
with:
5151
python-version: '3.10'
5252
architecture: 'x64'
@@ -110,10 +110,10 @@ jobs:
110110
PREVIOUS_COMMIT: ${{ needs.setup.outputs.previous_commit }}
111111
PR_NUMBER: ${{ github.event.pull_request.number }}
112112
steps:
113-
- uses: actions/checkout@v3
113+
- uses: actions/checkout@v4
114114
with:
115115
fetch-depth: 10
116-
- uses: actions/setup-python@v4
116+
- uses: actions/setup-python@v5
117117
with:
118118
python-version: '3.10'
119119
architecture: 'x64'

.github/workflows/get-maintainers.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ jobs:
88
get_maintainers:
99
runs-on: ubuntu-22.04
1010
steps:
11-
- uses: actions/checkout@v3
11+
- uses: actions/checkout@v4
1212
with:
1313
fetch-depth: 10
1414
- name: Get commit branch and commit message from PR
@@ -19,7 +19,7 @@ jobs:
1919
echo "$(git log --format=%B -n 1 HEAD^2)" >> $GITHUB_ENV
2020
echo "EOF" >> $GITHUB_ENV
2121
echo "PREVIOUS_COMMIT=$(git log --format=%H -n 1 HEAD^2~1)" >> $GITHUB_ENV
22-
- uses: actions/setup-python@v4
22+
- uses: actions/setup-python@v5
2323
with:
2424
python-version: '3.10'
2525
architecture: 'x64'
@@ -31,7 +31,7 @@ jobs:
3131
run: |
3232
python ./toolset/github_actions/get_maintainers.py > ./maintainers/maintainers.md
3333
- name: Save Maintainers
34-
uses: actions/upload-artifact@v3
34+
uses: actions/upload-artifact@v4
3535
with:
3636
name: maintainers
3737
path: maintainers/

.github/workflows/label-failing-pr.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ jobs:
1010
runs-on: ubuntu-22.04
1111
steps:
1212
- name: 'Download artifact'
13-
uses: actions/github-script@v3.1.0
13+
uses: actions/github-script@v7
1414
with:
1515
# scripts lightly modified from https://securitylab.github.com/research/github-actions-preventing-pwn-requests
1616
script: |
@@ -32,7 +32,7 @@ jobs:
3232
fs.writeFileSync('${{github.workspace}}/pr.zip', Buffer.from(download.data));
3333
- run: unzip pr.zip
3434
- name: Label PR
35-
uses: actions/github-script@v3
35+
uses: actions/github-script@v7
3636
with:
3737
github-token: ${{ secrets.GITHUB_TOKEN }}
3838
script: |

.github/workflows/ping-maintainers.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
runs-on: ubuntu-22.04
1212
steps:
1313
- name: 'Download maintainers artifact'
14-
uses: actions/github-script@v6
14+
uses: actions/github-script@v7
1515
with:
1616
script: |
1717
let artifacts = await github.rest.actions.listWorkflowRunArtifacts({
@@ -32,7 +32,7 @@ jobs:
3232
fs.writeFileSync('${{github.workspace}}/maintainers.zip', Buffer.from(download.data));
3333
- run: unzip maintainers.zip
3434
- name: Ping maintainers
35-
uses: actions/github-script@v6
35+
uses: actions/github-script@v7
3636
with:
3737
github-token: ${{ secrets.GITHUB_TOKEN }}
3838
script: |

0 commit comments

Comments
 (0)