File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -12,21 +12,25 @@ inputs:
12
12
runs :
13
13
using : " composite"
14
14
steps :
15
- - name : Calculate target file name
15
+ - name : Calculate metadata
16
16
id : meta
17
17
run : |
18
18
import os, secrets
19
19
rnd = secrets.token_hex(16)
20
20
with open(os.environ["GITHUB_OUTPUT"], "a") as f:
21
21
print(f"file=.coverage.{rnd}", file=f)
22
+ art = os.environ["ARTIFACT"]
23
+ print(f"artifact={art}-{rnd}", file=f)
24
+ env :
25
+ artifact : ${{ inputs.artifact }}
22
26
shell : python
23
27
- name : Rename file
24
28
run : mv ${{ inputs.file }} ${{ steps.meta.outputs.file }}
25
29
shell : bash
26
30
- name : Upload coverage artifact
27
31
28
32
with :
29
- name : ${{ inputs .artifact }}
33
+ name : ${{ steps.meta.outputs .artifact }}
30
34
path : ${{ steps.meta.outputs.file }}
31
35
if-no-files-found : error
32
36
retention-days : 1
You can’t perform that action at this time.
0 commit comments