Skip to content

Commit

Permalink
ci: Add check for modified files before analyzing code (#2325)
Browse files Browse the repository at this point in the history
  • Loading branch information
tippmar-nr committed Mar 8, 2024
1 parent 1f91bc4 commit a4c5994
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,18 @@ concurrency:
cancel-in-progress: true

jobs:
check-modified-files:
name: Check if source files were modified, skip remaining jobs if not
uses: ./.github/workflows/check_modified_files.yml
secrets: inherit
permissions:
contents: read
pull-requests: read

analyze-dotnet:
name: Analyze .NET
needs: check-modified-files
if: needs.check-modified-files.outputs.non-workflow-files-changed == 'true'
runs-on: windows-latest
timeout-minutes: 120
permissions:
Expand Down Expand Up @@ -55,6 +65,8 @@ jobs:

analyze-cpp:
name: Analyze C++
needs: check-modified-files
if: needs.check-modified-files.outputs.non-workflow-files-changed == 'true'
runs-on: windows-latest
timeout-minutes: 120
permissions:
Expand Down

0 comments on commit a4c5994

Please sign in to comment.