@@ -5,17 +5,17 @@ inputs:
55 description : " Name of product"
66 required : true
77 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
1010 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 "
1212 required : true
1313 token :
1414 description : " The GitHub token for the action"
1515 required : true
1616 output :
1717 description : " The output filename"
18- default : " papertail .txt"
18+ default : " papertrail .txt"
1919
2020runs :
2121 using : composite
@@ -26,16 +26,12 @@ runs:
2626 export GH_TOKEN=${{ inputs.token }}
2727 NAME=$(gh api users/${{ github.actor }} --jq '.name')
2828 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
3329 echo "Product: ${{ inputs.product_name }}" > $PAPERTRAIL
34- echo "Version: $VERSION " >> $PAPERTRAIL
30+ echo "Version: ${{ inputs.release_version }} " >> $PAPERTRAIL
3531 echo "Releaser: $NAME" >> $PAPERTRAIL
3632 echo "Build Source: GitHub Actions"
3733 echo "Build Number: ${{ github.run_id }}"
38- for filename in" ${{ inputs.filenames }}" ; do
34+ for filename in ${{ inputs.filenames }}; do
3935 SHA=$(shasum -a 256 $filename | awk '{print $1;}')
4036 echo "Filename: $filename" >> $PAPERTRAIL
4137 echo "Shasum: $SHA" >> $PAPERTRAIL
0 commit comments