Update codeql.yml

Add workaround to suppress the warning: `Please specify an on.push hook`.
This commit is contained in:
isaak654 2023-07-15 12:09:40 +02:00 committed by GitHub
parent abc8c5e504
commit b3462d1ddb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 7 additions and 6 deletions

View File

@ -2,12 +2,12 @@ name: "CodeQL"
on:
workflow_dispatch:
#push:
# branches: [ 'master' ]
# paths:
# - '**.c'
# - '**.cpp'
# - '**.h'
push:
branches: [ 'master' ]
paths:
- '**.c'
- '**.cpp'
- '**.h'
pull_request:
types:
- opened
@ -23,6 +23,7 @@ on:
jobs:
analyze:
name: Analyze
if: github.event_name == 'pull_request'
runs-on: windows-2019
timeout-minutes: 45