From f5bd4a45c878efbfe8a45150da3e16a7cbfab91e Mon Sep 17 00:00:00 2001 From: dwertent Date: Wed, 28 Aug 2024 15:52:27 -0400 Subject: [PATCH] chore: Ignore markdown files and GitHub workflows in Docker and Go workflows Signed-off-by: dwertent --- .github/workflows/docker_main.yml | 3 +++ .github/workflows/go.yml | 13 ++++++++++++- 2 files changed, 15 insertions(+), 1 deletion(-) diff --git a/.github/workflows/docker_main.yml b/.github/workflows/docker_main.yml index 658ed3caa..94eadaf72 100644 --- a/.github/workflows/docker_main.yml +++ b/.github/workflows/docker_main.yml @@ -4,6 +4,9 @@ on: push: branches: - main + paths-ignore: + - '.github/**' # exclude .github directory + - '**.md' # exclude all markdown files jobs: docker: diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index 895ee57e2..f7628c96d 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -3,8 +3,19 @@ name: Go on: push: branches: [main] + paths: + - '**' # include all files + - '!.github/**' # exclude .github directory + - '!**.md' # exclude all markdown files + - 'doc-site/docs/reference/**.md' # include markdown files that are auto generated and need to be tested + pull_request: - branches: [main] + paths: + - '**' # include all files + - '!.github/**' # exclude .github directory + - '!**.md' # exclude all markdown files + - 'doc-site/docs/reference/**.md' # include markdown files that are auto generated and need to be tested + workflow_dispatch: jobs: