File tree Expand file tree Collapse file tree 2 files changed +4
-13
lines changed
actions/publish_asset_to_s3 Expand file tree Collapse file tree 2 files changed +4
-13
lines changed Original file line number Diff line number Diff line change @@ -14,8 +14,7 @@ inputs:
14
14
dry_run :
15
15
description : " Whether this is a dry run"
16
16
required : false
17
- type : boolean
18
- default : false
17
+ default : ' false'
19
18
20
19
runs :
21
20
using : composite
31
30
else
32
31
echo "Dry run, not uploading to S3 or creating GitHub Release"
33
32
echo "Would upload $FILES"
33
+ cat $FILES
34
34
fi
35
35
env :
36
36
VERSION : ${{ inputs.version }}
Original file line number Diff line number Diff line change 41
41
generate_sarif_report :
42
42
environment : release
43
43
runs-on : ubuntu-latest
44
+ needs : [release_please]
44
45
permissions :
45
46
# required for all workflows
46
47
security-events : write
@@ -63,21 +64,11 @@ jobs:
63
64
with :
64
65
ref : main
65
66
output-file : sarif-report.json
66
-
67
- - name : " Move sarif report to output file"
68
- shell : bash
69
- run : cp sarif-report.json ${{ env.S3_ASSETS }}/sarif-report.json
70
-
71
- - name : ' Print (TODO - upload to s3 instead)'
72
- shell : bash
73
- run : |
74
- ls ${{ env.S3_ASSETS }}
75
- cat ${{ env.S3_ASSETS }}/sarif-report.json
76
67
77
68
- name : actions/publish_asset_to_s3
78
69
uses : ./.github/actions/publish_asset_to_s3
79
70
with :
80
71
version : v6.5.0
81
72
product_name : js-bson-development
82
73
files : sarif-report.json
83
- dry_run : true
74
+ dry_run : ${{ needs.release_please.outputs.release_created }}
You can’t perform that action at this time.
0 commit comments