Skip to content

Commit 8cc2d3f

Browse files
giving publish ci write permissions
1 parent 20dadea commit 8cc2d3f

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

.github/scripts/publish_script.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,9 @@
4141
)
4242
latest_entry["commit"] = commit_hash
4343

44-
print(f"Publishing: {dataset['fileName']} v{latest_entry['version']}")
44+
print(
45+
f"Publishing: {dataset['fileName']} v{latest_entry['version'].lstrip('v')}"
46+
)
4547
try:
4648
copy_source = {"Bucket": STAGING_BUCKET, "Key": staging_key}
4749
client.copy_object(

.github/workflows/publish.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ permissions:
1111
jobs:
1212
publish-data:
1313
runs-on: ubuntu-latest
14+
permissions:
15+
contents: write # Allow pushing commits to the repository
1416
steps:
1517
- name: Checkout repository
1618
uses: actions/checkout@v4

0 commit comments

Comments
 (0)