Merge pull request #2770 from thaJeztah/codeql_cron_only

GH Actions: run CodeQL only on cron-job, not on pull requests
This commit is contained in:
Silvin Lubecki 2020-10-01 17:17:07 +02:00 committed by GitHub
commit 9b92be00e4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 15 additions and 6 deletions

View File

@ -6,13 +6,22 @@
name: "CodeQL" name: "CodeQL"
on: on:
push: # push:
branches: [master] # branches: [master]
pull_request: # pull_request:
# The branches below must be a subset of the branches above # # The branches below must be a subset of the branches above
branches: [master] # branches: [master]
schedule: schedule:
- cron: '0 9 * * 5' # ┌───────────── minute (0 - 59)
# │ ┌───────────── hour (0 - 23)
# │ │ ┌───────────── day of the month (1 - 31)
# │ │ │ ┌───────────── month (1 - 12)
# │ │ │ │ ┌───────────── day of the week (0 - 6) (Sunday to Saturday)
# │ │ │ │ │
# │ │ │ │ │
# │ │ │ │ │
# * * * * *
- cron: '0 9 * * 4'
jobs: jobs:
analyze: analyze: