From 517302e4dc46468b94eb664ebf3adec22b26d6c6 Mon Sep 17 00:00:00 2001 From: Thomas Tendyck Date: Sat, 3 Sep 2022 17:47:47 +0200 Subject: [PATCH] limit workflows to paths or filetypes --- .github/workflows/build-binaries.yml | 4 ++++ .github/workflows/docs-vale.yml | 6 +++++- .github/workflows/test-integration.yml | 4 ++++ .github/workflows/test-lint.yml | 4 ++++ .github/workflows/test-shellcheck.yml | 4 ++++ .github/workflows/test-unittest.yml | 4 ++++ .github/workflows/update-cli-reference.yml | 2 ++ 7 files changed, 27 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build-binaries.yml b/.github/workflows/build-binaries.yml index b69e1f854..5575c0693 100644 --- a/.github/workflows/build-binaries.yml +++ b/.github/workflows/build-binaries.yml @@ -6,7 +6,11 @@ on: push: branches: - main + paths: + - "**.go" pull_request: + paths: + - "**.go" # Abort runs of *this* workflow, if a new commit with the same ref is pushed. concurrency: diff --git a/.github/workflows/docs-vale.yml b/.github/workflows/docs-vale.yml index 22bde1fe1..d69a92cce 100644 --- a/.github/workflows/docs-vale.yml +++ b/.github/workflows/docs-vale.yml @@ -2,8 +2,12 @@ name: Linting on: push: branches: - - main + - main + paths: + - "docs/**" pull_request: + paths: + - "docs/**" jobs: prose: diff --git a/.github/workflows/test-integration.yml b/.github/workflows/test-integration.yml index c5f57a0eb..32926af76 100644 --- a/.github/workflows/test-integration.yml +++ b/.github/workflows/test-integration.yml @@ -5,7 +5,11 @@ on: push: branches: - main + paths: + - "**.go" pull_request: + paths: + - "**.go" # Abort runs of *this* workflow, if a new commit with the same ref is pushed. concurrency: diff --git a/.github/workflows/test-lint.yml b/.github/workflows/test-lint.yml index 6e46b7608..0f90aeb48 100644 --- a/.github/workflows/test-lint.yml +++ b/.github/workflows/test-lint.yml @@ -4,7 +4,11 @@ on: push: branches: - main + paths: + - "**.go" pull_request: + paths: + - "**.go" permissions: contents: read diff --git a/.github/workflows/test-shellcheck.yml b/.github/workflows/test-shellcheck.yml index 2d2916a7e..d1be2420c 100644 --- a/.github/workflows/test-shellcheck.yml +++ b/.github/workflows/test-shellcheck.yml @@ -3,7 +3,11 @@ on: push: branches: - main + paths: + - "**.sh" pull_request: + paths: + - "**.sh" # Abort runs of *this* workflow, if a new commit with the same ref is pushed. concurrency: diff --git a/.github/workflows/test-unittest.yml b/.github/workflows/test-unittest.yml index 7fe64253f..2bf681433 100644 --- a/.github/workflows/test-unittest.yml +++ b/.github/workflows/test-unittest.yml @@ -5,7 +5,11 @@ on: push: branches: - main + paths: + - "**.go" pull_request: + paths: + - "**.go" # Abort runs of *this* workflow, if a new commit with the same ref is pushed. concurrency: diff --git a/.github/workflows/update-cli-reference.yml b/.github/workflows/update-cli-reference.yml index a40c96fd5..7709d46f4 100644 --- a/.github/workflows/update-cli-reference.yml +++ b/.github/workflows/update-cli-reference.yml @@ -3,6 +3,8 @@ on: push: branches: - main + paths: + - "docs/docs/reference/cli.md" workflow_dispatch: jobs: