File tree 2 files changed +8
-6
lines changed
2 files changed +8
-6
lines changed Original file line number Diff line number Diff line change 27
27
jobs :
28
28
29
29
list-artifacts :
30
- name : Download and list all artifacts
30
+ name : List Artifacts
31
31
runs-on : ubuntu-22.04
32
32
steps :
33
33
# Checkout here so we can easily use custom actions
38
38
run : ls -R artifacts/
39
39
40
40
create-github-release :
41
- name : Download and list all artifacts
41
+ name : Draft Release v${{ inputs.salt-version }}
42
42
runs-on : ubuntu-22.04
43
43
outputs :
44
44
upload_url : ${{ steps.create_release.outputs.upload_url }}
Original file line number Diff line number Diff line change 17
17
jobs :
18
18
19
19
list-files :
20
- name : List Files From Artifact
20
+ name : List ${{ inputs.name }}
21
21
runs-on : ubuntu-22.04
22
22
outputs :
23
23
files : ${{ steps.list-files.outputs.files }}
@@ -26,12 +26,13 @@ jobs:
26
26
with :
27
27
name : ${{ inputs.name }}
28
28
path : artifacts
29
+ - run : find artifacts -maxdepth 1 -type f -printf '%f\n'
29
30
- id : list-files
30
31
run : |
31
32
echo files="$(find artifacts -maxdepth 1 -type f -printf '%f\n' | jq -Rnc '[inputs | { file: "\(.)" }]')" >> "$GITHUB_OUTPUT"
32
33
33
34
upload-files :
34
- name : Upload Source Tarball Artifacts
35
+ name : Upload ${{ matrix.file }} from ${{ inputs.name }}
35
36
runs-on : ubuntu-22.04
36
37
needs :
37
38
- list-files
@@ -44,10 +45,11 @@ jobs:
44
45
name : ${{ inputs.name }}
45
46
path : artifacts
46
47
47
- - id : file-type
48
+ - name : Detect type of ${{ matrix.file }}
49
+ id : file-type
48
50
run : echo "file_type=$( file --mime-type artifacts/${{ matrix.file }} )" >> "$GITHUB_OUTPUT"
49
51
50
- - name : Upload Source Tarball
52
+ - name : Upload ${{ matrix.file }}
51
53
id : upload-release-asset-source
52
54
uses : actions/upload-release-asset@v1
53
55
env :
You can’t perform that action at this time.
0 commit comments