File tree Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Original file line number Diff line number Diff line change 25
25
pip install botocore boto3
26
26
- name : Update metadata
27
27
run : |
28
+ aws sts get-caller-identity
28
29
./scripts/update-release-metadata.py sigsci-module-golang ${{ github.ref }}
29
30
env :
30
31
PROD_ID : ${{ secrets.SIGSCI_PROD_CANONICAL_ID }}
Original file line number Diff line number Diff line change @@ -35,11 +35,13 @@ def write_metadata(data):
35
35
resp = client .put_object (
36
36
Body = data ,
37
37
Bucket = 'release-metadata' ,
38
- Key = 'release-versions' ,
39
- GrantFullControl = prod_canonical_id
38
+ Key = 'release-versions-rell ' ,
39
+ GrantFullControl = f'id= { prod_canonical_id } '
40
40
)
41
41
42
- if resp .ResponseMetadata .HTTPStatusCode != 200 :
42
+ print (resp )
43
+
44
+ if resp ["ResponseMetadata" ]["HTTPStatusCode" ] != 200 :
43
45
sys .stderr .write ('Unable to upload file. Dumping response metadata.\n ' )
44
46
print (resp , file = sys .stderr )
45
47
return 1
You can’t perform that action at this time.
0 commit comments