From ca756732d88c428ed6dbbfcccb08484c489dafb9 Mon Sep 17 00:00:00 2001 From: Varun Patil Date: Fri, 20 Oct 2023 11:27:00 -0700 Subject: [PATCH] ci: restrict workflow paths Signed-off-by: Varun Patil --- .github/workflows/docs.yaml | 4 ++++ .github/workflows/e2e.yaml | 4 ++++ .github/workflows/static-analysis.yaml | 12 ++++++++++-- 3 files changed, 18 insertions(+), 2 deletions(-) diff --git a/.github/workflows/docs.yaml b/.github/workflows/docs.yaml index bb54734d5..4399d7272 100644 --- a/.github/workflows/docs.yaml +++ b/.github/workflows/docs.yaml @@ -3,6 +3,10 @@ on: push: branches: - master + paths: + - 'docs/**' + - 'CHANGELOG.md' + - 'mkdocs.yml' permissions: contents: write diff --git a/.github/workflows/e2e.yaml b/.github/workflows/e2e.yaml index 096025545..e3222d2a4 100644 --- a/.github/workflows/e2e.yaml +++ b/.github/workflows/e2e.yaml @@ -5,6 +5,10 @@ on: branches: - master - pulsejet/* + paths-ignore: + - 'docs/**' + - 'mkdocs.yml' + - '**.md' env: APP_NAME: memories diff --git a/.github/workflows/static-analysis.yaml b/.github/workflows/static-analysis.yaml index d443bc6bd..0a9fae0e5 100644 --- a/.github/workflows/static-analysis.yaml +++ b/.github/workflows/static-analysis.yaml @@ -1,8 +1,16 @@ --- name: static analysis on: - - push - - pull_request + push: + paths-ignore: + - 'docs/**' + - 'mkdocs.yml' + - '**.md' + pull_request: + paths-ignore: + - 'docs/**' + - 'mkdocs.yml' + - '**.md' jobs: php-lint: