From 1a3fffe0a6f56f1c49d2e8618764e573e22219d1 Mon Sep 17 00:00:00 2001 From: Pradipta Banerjee Date: Thu, 5 Dec 2024 09:59:39 +0530 Subject: [PATCH] Skip GH action workflow on changes to md files Avoids unnecessary runs Signed-off-by: Pradipta Banerjee --- .github/workflows/docker-publish-latest-on-merge.yaml | 3 +++ .github/workflows/gofmt.yaml | 3 +++ .github/workflows/golangci-lint.yaml | 3 +++ .github/workflows/kuttl-int-tests.yaml | 3 +++ 4 files changed, 12 insertions(+) diff --git a/.github/workflows/docker-publish-latest-on-merge.yaml b/.github/workflows/docker-publish-latest-on-merge.yaml index c2c7cbd..41eb75e 100644 --- a/.github/workflows/docker-publish-latest-on-merge.yaml +++ b/.github/workflows/docker-publish-latest-on-merge.yaml @@ -11,6 +11,9 @@ on: push: branches: - main + # Skip CI when changes are made to *.md files + paths-ignore: + - '**.md' env: diff --git a/.github/workflows/gofmt.yaml b/.github/workflows/gofmt.yaml index b20eb0d..a1e21d1 100644 --- a/.github/workflows/gofmt.yaml +++ b/.github/workflows/gofmt.yaml @@ -3,6 +3,9 @@ on: pull_request: branches: - main + # Skip CI when changes are made to *.md files + paths-ignore: + - '**.md' permissions: contents: read diff --git a/.github/workflows/golangci-lint.yaml b/.github/workflows/golangci-lint.yaml index b60ded0..b325463 100644 --- a/.github/workflows/golangci-lint.yaml +++ b/.github/workflows/golangci-lint.yaml @@ -3,6 +3,9 @@ on: pull_request: branches: - main + # Skip CI when changes are made to *.md files + paths-ignore: + - '**.md' permissions: contents: read diff --git a/.github/workflows/kuttl-int-tests.yaml b/.github/workflows/kuttl-int-tests.yaml index 13cc7bd..ef9a671 100644 --- a/.github/workflows/kuttl-int-tests.yaml +++ b/.github/workflows/kuttl-int-tests.yaml @@ -3,6 +3,9 @@ on: pull_request: branches: - main + # Skip CI when changes are made to *.md files + paths-ignore: + - '**.md' env: KUTTL: /usr/local/bin/kubectl-kuttl