diff --git a/.github/workflows/apply-standards.yaml b/.github/workflows/apply-standards.yaml index 1cb8e83..a9bdbb6 100644 --- a/.github/workflows/apply-standards.yaml +++ b/.github/workflows/apply-standards.yaml @@ -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 diff --git a/github_standards/__main__.py b/github_standards/__main__.py index 3bbc922..349b254 100644 --- a/github_standards/__main__.py +++ b/github_standards/__main__.py @@ -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')