Skip to content

Commit

Permalink
chore(ci): run CodeQL on commits to bump automatically generated files (
Browse files Browse the repository at this point in the history
  • Loading branch information
addaleax committed May 10, 2024
1 parent ab112a1 commit 92ff48d
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/codeql.yml
Expand Up @@ -19,6 +19,11 @@ on:
branches: [ "main" ]
schedule:
- cron: '30 20 * * 1'
workflow_run:
workflows: ["Update automatically generated files"]
types:
- completed
branches: [ "main" ]

jobs:
analyze:
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/cron-tasks.yml
@@ -1,3 +1,5 @@
name: Update automatically generated files

on:
# Once a week or on pushes to main
schedule:
Expand Down Expand Up @@ -54,6 +56,7 @@ jobs:
run: |
npm run generate-error-overview
mv error-overview.md error-overview.rst packages/errors/generated/
npm run reformat
git add packages/errors/generated
git commit --no-allow-empty -m "chore: update error documentation" || true
Expand Down

0 comments on commit 92ff48d

Please sign in to comment.