From 1227e469657c57f036cd967240e7e7ebc0cd6510 Mon Sep 17 00:00:00 2001 From: Matt Kilgore Date: Wed, 19 Jun 2024 20:09:23 -0400 Subject: [PATCH] fix(ci): ignore non-code paths --- .github/workflows/docker-publish-rootless.yaml | 10 ++++++++++ .github/workflows/docker-publish.yaml | 10 ++++++++++ .github/workflows/pull-requests.yaml | 6 ++++++ 3 files changed, 26 insertions(+) diff --git a/.github/workflows/docker-publish-rootless.yaml b/.github/workflows/docker-publish-rootless.yaml index e8fbc3153..af984c0d5 100644 --- a/.github/workflows/docker-publish-rootless.yaml +++ b/.github/workflows/docker-publish-rootless.yaml @@ -5,10 +5,20 @@ on: - cron: '00 6 * * *' push: branches: [ "main" ] + paths-ignore: + - 'docs/**' + - 'README.md' + - 'CONTRIBUTING.md' + - 'CODE_OF_CONDUCT.md' # Publish semver tags as releases. tags: [ 'v*.*.*' ] pull_request: branches: [ "main" ] + paths-ignore: + - 'docs/**' + - 'README.md' + - 'CONTRIBUTING.md' + - 'CODE_OF_CONDUCT.md' env: # Use docker.io for Docker Hub if empty diff --git a/.github/workflows/docker-publish.yaml b/.github/workflows/docker-publish.yaml index 41ac851b1..e7e4cefb0 100644 --- a/.github/workflows/docker-publish.yaml +++ b/.github/workflows/docker-publish.yaml @@ -5,10 +5,20 @@ on: - cron: '00 6 * * *' push: branches: [ "main" ] + paths-ignore: + - 'docs/**' + - 'README.md' + - 'CONTRIBUTING.md' + - 'CODE_OF_CONDUCT.md' # Publish semver tags as releases. tags: [ 'v*.*.*' ] pull_request: branches: [ "main" ] + paths-ignore: + - 'docs/**' + - 'README.md' + - 'CONTRIBUTING.md' + - 'CODE_OF_CONDUCT.md' env: # Use docker.io for Docker Hub if empty diff --git a/.github/workflows/pull-requests.yaml b/.github/workflows/pull-requests.yaml index f39539be7..0799ecde1 100644 --- a/.github/workflows/pull-requests.yaml +++ b/.github/workflows/pull-requests.yaml @@ -5,6 +5,12 @@ on: branches: - main + paths-ignore: + - 'docs/**' + - 'README.md' + - 'CONTRIBUTING.md' + - 'CODE_OF_CONDUCT.md' + jobs: backend-tests: name: "Backend Server Tests"