Skip to content

Commit

Permalink
fix: give regenerate workflow write permission
Browse files Browse the repository at this point in the history
  • Loading branch information
HeitorAugustoLN committed Aug 15, 2024
1 parent 67da2e3 commit b5f6c2f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion .github/workflows/regenerate.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
name: Regenerate
permissions:
contents: write
pull-requests: write
on:
workflow_dispatch: # allows manual triggering
schedule:
Expand Down Expand Up @@ -45,4 +48,4 @@ jobs:
delete-branch: true
committer: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
author: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
title: Update generated files
title: Update generated files
2 changes: 1 addition & 1 deletion generator/generator.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ def generate_url(self, version: str) -> str:

def generate_versions(self, default_nix: TextIO):
for version in self.versions:
print(f"Generating {self.generation_type} v{version}")
print(f"Generating {self.generation_type} {version}")
url = self.generate_url(version)
response = requests.get(url)
if response.status_code == 200:
Expand Down

0 comments on commit b5f6c2f

Please sign in to comment.