File tree Expand file tree Collapse file tree 2 files changed +28
-11
lines changed Expand file tree Collapse file tree 2 files changed +28
-11
lines changed Original file line number Diff line number Diff line change @@ -69,18 +69,35 @@ jobs:
69
69
--output concise \
70
70
| tee diff_${{ matrix.shard-index }}.txt
71
71
) || [ $? -eq 1 ]
72
- - name : Upload mypy_primer diff
73
- uses : actions/upload-artifact@v3
74
- with :
75
- name : mypy_primer_diffs
76
- path : diff_${{ matrix.shard-index }}.txt
77
- - if : ${{ matrix.shard-index }} == 0
72
+ - if : ${{ matrix.shard-index == 0 }}
78
73
name : Save PR number
79
74
run : |
80
75
echo ${{ github.event.pull_request.number }} | tee pr_number.txt
81
- - if : ${{ matrix.shard-index }} == 0
82
- name : Upload PR number
83
- uses : actions/upload-artifact@v3
76
+ - if : ${{ matrix.shard-index == 0 }}
77
+ name : Upload mypy_primer diff + PR number
78
+ uses : actions/upload-artifact@v4
79
+ with :
80
+ name : mypy_primer_diffs-${{ matrix.shard-index }}
81
+ path : |
82
+ diff_${{ matrix.shard-index }}.txt
83
+ pr_number.txt
84
+ - name : Upload mypy_primer diff
85
+ uses : actions/upload-artifact@v4
86
+ if : ${{ matrix.shard-index != 0 }}
87
+ with :
88
+ name : mypy_primer_diffs-${{ matrix.shard-index }}
89
+ path : diff_${{ matrix.shard-index }}.txt
90
+
91
+ join_artifacts :
92
+ name : Join artifacts
93
+ runs-on : ubuntu-latest
94
+ needs : [mypy_primer]
95
+ permissions :
96
+ contents : read
97
+ steps :
98
+ - name : Merge artifacts
99
+ uses : actions/upload-artifact/merge@v4
84
100
with :
85
101
name : mypy_primer_diffs
86
- path : pr_number.txt
102
+ pattern : mypy_primer_diffs-*
103
+ delete-merged : true
Original file line number Diff line number Diff line change 18
18
if : ${{ github.event.workflow_run.conclusion == 'success' }}
19
19
steps :
20
20
- name : Download diffs
21
- uses : actions/github-script@v6
21
+ uses : actions/github-script@v7
22
22
with :
23
23
script : |
24
24
const fs = require('fs');
You can’t perform that action at this time.
0 commit comments