File tree Expand file tree Collapse file tree 4 files changed +12
-12
lines changed Expand file tree Collapse file tree 4 files changed +12
-12
lines changed Original file line number Diff line number Diff line change 10
10
run : |
11
11
mkdir -p ./pr
12
12
echo ${{ github.event.number }} > ./pr/NR
13
- - uses : actions/upload-artifact@v2
13
+ - uses : actions/upload-artifact@v4
14
14
if : github.event_name == 'pull_request'
15
15
with :
16
16
name : pr
20
20
#
21
21
# We need to fetch more than one commit to be able to access HEAD^2 in case
22
22
# of a pull request
23
- - uses : actions/checkout@v3
23
+ - uses : actions/checkout@v4
24
24
with :
25
25
fetch-depth : 10
26
26
# In case of a push event, the commit we care about is simply HEAD.
46
46
echo "$(git log --format=%B -n 1 HEAD^2)" >> $GITHUB_ENV
47
47
echo "EOF" >> $GITHUB_ENV
48
48
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
50
50
with :
51
51
python-version : ' 3.10'
52
52
architecture : ' x64'
@@ -110,10 +110,10 @@ jobs:
110
110
PREVIOUS_COMMIT : ${{ needs.setup.outputs.previous_commit }}
111
111
PR_NUMBER : ${{ github.event.pull_request.number }}
112
112
steps :
113
- - uses : actions/checkout@v3
113
+ - uses : actions/checkout@v4
114
114
with :
115
115
fetch-depth : 10
116
- - uses : actions/setup-python@v4
116
+ - uses : actions/setup-python@v5
117
117
with :
118
118
python-version : ' 3.10'
119
119
architecture : ' x64'
Original file line number Diff line number Diff line change 8
8
get_maintainers :
9
9
runs-on : ubuntu-22.04
10
10
steps :
11
- - uses : actions/checkout@v3
11
+ - uses : actions/checkout@v4
12
12
with :
13
13
fetch-depth : 10
14
14
- name : Get commit branch and commit message from PR
19
19
echo "$(git log --format=%B -n 1 HEAD^2)" >> $GITHUB_ENV
20
20
echo "EOF" >> $GITHUB_ENV
21
21
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
23
23
with :
24
24
python-version : ' 3.10'
25
25
architecture : ' x64'
31
31
run : |
32
32
python ./toolset/github_actions/get_maintainers.py > ./maintainers/maintainers.md
33
33
- name : Save Maintainers
34
- uses : actions/upload-artifact@v3
34
+ uses : actions/upload-artifact@v4
35
35
with :
36
36
name : maintainers
37
37
path : maintainers/
Original file line number Diff line number Diff line change 10
10
runs-on : ubuntu-22.04
11
11
steps :
12
12
- name : ' Download artifact'
13
- uses : actions/github-script@v3.1.0
13
+ uses : actions/github-script@v7
14
14
with :
15
15
# scripts lightly modified from https://securitylab.github.com/research/github-actions-preventing-pwn-requests
16
16
script : |
32
32
fs.writeFileSync('${{github.workspace}}/pr.zip', Buffer.from(download.data));
33
33
- run : unzip pr.zip
34
34
- name : Label PR
35
- uses : actions/github-script@v3
35
+ uses : actions/github-script@v7
36
36
with :
37
37
github-token : ${{ secrets.GITHUB_TOKEN }}
38
38
script : |
Original file line number Diff line number Diff line change 11
11
runs-on : ubuntu-22.04
12
12
steps :
13
13
- name : ' Download maintainers artifact'
14
- uses : actions/github-script@v6
14
+ uses : actions/github-script@v7
15
15
with :
16
16
script : |
17
17
let artifacts = await github.rest.actions.listWorkflowRunArtifacts({
32
32
fs.writeFileSync('${{github.workspace}}/maintainers.zip', Buffer.from(download.data));
33
33
- run : unzip maintainers.zip
34
34
- name : Ping maintainers
35
- uses : actions/github-script@v6
35
+ uses : actions/github-script@v7
36
36
with :
37
37
github-token : ${{ secrets.GITHUB_TOKEN }}
38
38
script : |
You can’t perform that action at this time.
0 commit comments