Skip to content

Commit f8c72c0

Browse files
committed
Some fixes, print caller identity for debugging
1 parent 0b9a1b0 commit f8c72c0

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

.github/workflows/release.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ jobs:
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 }}

scripts/update-release-metadata.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)