File tree Expand file tree Collapse file tree 2 files changed +46
-0
lines changed
actions/publish_asset_to_s3 Expand file tree Collapse file tree 2 files changed +46
-0
lines changed Original file line number Diff line number Diff line change
1
+
2
+ name : Publish Python
3
+ description : " Publish Assets and Report"
4
+ inputs :
5
+ version :
6
+ description : " The published version"
7
+ required : true
8
+ product_name :
9
+ description : " The name of the product"
10
+ required : true
11
+ files :
12
+ description : file to upload
13
+ required : true
14
+ dry_run :
15
+ description : " Whether this is a dry run"
16
+ required : true
17
+
18
+ runs :
19
+ using : composite
20
+ steps :
21
+ - name : Run publish script
22
+ shell : bash
23
+ run : |
24
+ set -eux
25
+ if [ "$DRY_RUN" == "false" ]; then
26
+ echo "Uploading Release Reports"
27
+ TARGET=s3://${AWS_BUCKET}/${PRODUCT_NAME}/${VERSION}
28
+ aws s3 cp $FILES $TARGET
29
+ else
30
+ echo "Dry run, not uploading to S3 or creating GitHub Release"
31
+ echo "Would upload $FILES"
32
+ fi
33
+ env :
34
+ VERSION : ${{ inputs.version }}
35
+ PRODUCT_NAME : ${{ inputs.product_name }}
36
+ DRY_RUN : ${{ inputs.dry_run }}
37
+ FILES : ${{ inputs.files }}
38
+
Original file line number Diff line number Diff line change 73
73
run : |
74
74
ls ${{ env.S3_ASSETS }}
75
75
cat ${{ env.S3_ASSETS }}/sarif-report.json
76
+
77
+ - name : actions/publish_asset_to_s3
78
+ uses : ./.github/actions/publish_asset_to_s3
79
+ with :
80
+ version : v6.5.0
81
+ product_name : js-bson-development
82
+ files : sarif-report.json
83
+ dry_run : false
You can’t perform that action at this time.
0 commit comments