Skip to content

Commit

Permalink
Merge pull request #2 from sonatype-nexus-community/feat/enable-stand…
Browse files Browse the repository at this point in the history
…ards-application

feat: actually apply our standards and do it every day at 05:00 UTC
  • Loading branch information
madpah authored Oct 15, 2024
2 parents 5c98429 + 682b1af commit 6cdf9a7
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions .github/workflows/apply-standards.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@ name: Enforce Standards
on:
workflow_dispatch:

# Run every day at 05:00 UTC
schedule:
- cron: '0 5 * * *'

jobs:
enforce-standards:
runs-on: ubuntu-latest
Expand Down
2 changes: 1 addition & 1 deletion github_standards/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ def main() -> None:
# List all Repos
for repo in gh_org.get_repos():
if repo.custom_properties.get('Auto-Apply-Standards', 'false') != 'false':
apply_standards_to_repo(repo=repo)
apply_standards_to_repo(repo=repo, do_actual_work=True)
else:
print(f'Skipping {repo.name} as Auto-Apply-Standards is not true')

Expand Down

0 comments on commit 6cdf9a7

Please sign in to comment.