@@ -5,17 +5,17 @@ inputs:
5
5
description : " Name of product"
6
6
required : true
7
7
release_version :
8
- description : " The release version. If not provided, the github.ref_name variable will be used "
9
- required : false
8
+ description : " The release version"
9
+ required : true
10
10
filenames :
11
- description : " Artifact filenames to include in the report, space-separated "
11
+ description : " Artifact filename(s) to include in the report, can be a glob pattern "
12
12
required : true
13
13
token :
14
14
description : " The GitHub token for the action"
15
15
required : true
16
16
output :
17
17
description : " The output filename"
18
- default : " papertail .txt"
18
+ default : " papertrail .txt"
19
19
20
20
runs :
21
21
using : composite
@@ -26,16 +26,12 @@ runs:
26
26
export GH_TOKEN=${{ inputs.token }}
27
27
NAME=$(gh api users/${{ github.actor }} --jq '.name')
28
28
export PAPERTRAIL="${{ inputs.output }}"
29
- export VERSION="${{ github.ref_name }}"
30
- if [ -n "${{ inputs.release_version }}" ]; then
31
- export VERSION="${{ inputs.release_version }}"
32
- fi
33
29
echo "Product: ${{ inputs.product_name }}" > $PAPERTRAIL
34
- echo "Version: $VERSION " >> $PAPERTRAIL
30
+ echo "Version: ${{ inputs.release_version }} " >> $PAPERTRAIL
35
31
echo "Releaser: $NAME" >> $PAPERTRAIL
36
32
echo "Build Source: GitHub Actions"
37
33
echo "Build Number: ${{ github.run_id }}"
38
- for filename in" ${{ inputs.filenames }}" ; do
34
+ for filename in ${{ inputs.filenames }}; do
39
35
SHA=$(shasum -a 256 $filename | awk '{print $1;}')
40
36
echo "Filename: $filename" >> $PAPERTRAIL
41
37
echo "Shasum: $SHA" >> $PAPERTRAIL
0 commit comments