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 2525 pip install botocore boto3
2626 - name : Update metadata
2727 run : |
28+ aws sts get-caller-identity
2829 ./scripts/update-release-metadata.py sigsci-module-golang ${{ github.ref }}
2930 env :
3031 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):
3535 resp = client .put_object (
3636 Body = data ,
3737 Bucket = 'release-metadata' ,
38- Key = 'release-versions' ,
39- GrantFullControl = prod_canonical_id
38+ Key = 'release-versions-rell ' ,
39+ GrantFullControl = f'id= { prod_canonical_id } '
4040 )
4141
42- if resp .ResponseMetadata .HTTPStatusCode != 200 :
42+ print (resp )
43+
44+ if resp ["ResponseMetadata" ]["HTTPStatusCode" ] != 200 :
4345 sys .stderr .write ('Unable to upload file. Dumping response metadata.\n ' )
4446 print (resp , file = sys .stderr )
4547 return 1
You can’t perform that action at this time.
0 commit comments