From d386072c2b34ad33b667c00f21062cf1c6defa3d Mon Sep 17 00:00:00 2001 From: Vijayakumar A <36878324+kumvijaya@users.noreply.github.com> Date: Sun, 7 Jul 2024 08:01:40 +0530 Subject: T6560: added workflow trigger path restrictions (#3799) --- .github/workflows/check-unused-imports.yml | 4 ++++ .github/workflows/codeql.yml | 8 ++++++++ .github/workflows/package-smoketest.yml | 4 ++++ .github/workflows/sonarcloud.yml | 8 ++++++++ 4 files changed, 24 insertions(+) (limited to '.github') diff --git a/.github/workflows/check-unused-imports.yml b/.github/workflows/check-unused-imports.yml index 3f6e8757e..76bba94be 100644 --- a/.github/workflows/check-unused-imports.yml +++ b/.github/workflows/check-unused-imports.yml @@ -3,6 +3,10 @@ on: pull_request_target: branches: - current + paths: + - '**' + - '!.github/**' + - '!**/*.md' workflow_dispatch: permissions: diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml index 00387f725..143029c14 100644 --- a/.github/workflows/codeql.yml +++ b/.github/workflows/codeql.yml @@ -3,9 +3,17 @@ name: "Perform CodeQL Analysis" on: push: branches: [ "current" ] + paths: + - '**' + - '!.github/**' + - '!**/*.md' pull_request: # The branches below must be a subset of the branches above branches: [ "current" ] + paths: + - '**' + - '!.github/**' + - '!**/*.md' schedule: - cron: '22 10 * * 0' diff --git a/.github/workflows/package-smoketest.yml b/.github/workflows/package-smoketest.yml index 68f914108..824cd64b1 100644 --- a/.github/workflows/package-smoketest.yml +++ b/.github/workflows/package-smoketest.yml @@ -4,6 +4,10 @@ on: pull_request_target: branches: - current + paths: + - '**' + - '!.github/**' + - '!**/*.md' permissions: pull-requests: write diff --git a/.github/workflows/sonarcloud.yml b/.github/workflows/sonarcloud.yml index 5fa005631..a8eaca777 100644 --- a/.github/workflows/sonarcloud.yml +++ b/.github/workflows/sonarcloud.yml @@ -3,8 +3,16 @@ on: push: branches: - current + paths: + - '**' + - '!.github/**' + - '!**/*.md' pull_request_target: types: [opened, synchronize, reopened] + paths: + - '**' + - '!.github/**' + - '!**/*.md' jobs: sonar-cloud: name: SonarCloud -- cgit v1.2.3