diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 1127b7474..d08b189a0 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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 }} diff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/codeql-analysis.yml index a5efc7579..3660969a3 100644 --- a/.github/workflows/codeql-analysis.yml +++ b/.github/workflows/codeql-analysis.yml @@ -3,8 +3,6 @@ name: "CodeQL Analysis" on: workflow_dispatch: workflow_call: - push: - branches: [master] jobs: analyze: diff --git a/.github/workflows/sonarcloud-analysis.yml b/.github/workflows/sonarcloud-analysis.yml index b3fc246d4..a861d6588 100644 --- a/.github/workflows/sonarcloud-analysis.yml +++ b/.github/workflows/sonarcloud-analysis.yml @@ -6,8 +6,6 @@ on: secrets: SONAR_TOKEN: required: true - push: - branches: [master] jobs: sonarcloud-analysis: