ci: Run CI when landing to master branch

No longer run sonar or codeQL on push to master
    They are auto run by the CI job

s
This commit is contained in:
sithlord48 2024-10-13 14:20:02 -04:00 committed by Nick Bolton
parent c630ad0952
commit abe8146631
3 changed files with 3 additions and 6 deletions

View file

@ -9,6 +9,8 @@ on:
inputs:
version:
description: Deskflow version number
push:
branches: [ master ]
pull_request:
types:
- opened
@ -95,12 +97,11 @@ jobs:
analyse-codeql:
needs: [lint-cmake, lint-clang]
if: ${{ github.event_name == 'pull_request' }}
uses: ./.github/workflows/codeql-analysis.yml
analyse-sonarcloud:
needs: [lint-cmake, lint-clang, pr-comment-flags]
if: ${{ github.event_name == 'pull_request' && needs.pr-comment-flags.outputs.no-sonar != 'true' }}
if: ${{ needs.pr-comment-flags.outputs.no-sonar != 'true' }}
uses: ./.github/workflows/sonarcloud-analysis.yml
secrets:
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}

View file

@ -3,8 +3,6 @@ name: "CodeQL Analysis"
on:
workflow_dispatch:
workflow_call:
push:
branches: [master]
jobs:
analyze:

View file

@ -6,8 +6,6 @@ on:
secrets:
SONAR_TOKEN:
required: true
push:
branches: [master]
jobs:
sonarcloud-analysis: