From d931050a6f8f4a62077e7e9fe6f1757f7c235c9c Mon Sep 17 00:00:00 2001 From: Winni Neessen Date: Fri, 4 Oct 2024 15:28:22 +0200 Subject: [PATCH] Update GitHub Actions paths for Go and workflow files This commit refines the paths in GitHub Actions workflows to more precisely track changes in Go-related files and specific workflow files. General `.github/**` paths have been replaced with explicit references to relevant workflow files within `.github/workflows`. --- .github/workflows/codecov.yml | 4 ++-- .github/workflows/offline-tests.yml | 6 ++---- .github/workflows/sonarqube.yml | 12 ++++++++++-- 3 files changed, 14 insertions(+), 8 deletions(-) diff --git a/.github/workflows/codecov.yml b/.github/workflows/codecov.yml index 60679ee..ed971d1 100644 --- a/.github/workflows/codecov.yml +++ b/.github/workflows/codecov.yml @@ -10,7 +10,7 @@ on: paths: - '**.go' - 'go.*' - - '.github/**' + - '.github/workflows/codecov.yml' - 'codecov.yml' pull_request: branches: @@ -18,7 +18,7 @@ on: paths: - '**.go' - 'go.*' - - '.github/**' + - '.github/workflows/codecov.yml' - 'codecov.yml' env: TEST_HOST: ${{ secrets.TEST_HOST }} diff --git a/.github/workflows/offline-tests.yml b/.github/workflows/offline-tests.yml index 7ca3ea2..2660646 100644 --- a/.github/workflows/offline-tests.yml +++ b/.github/workflows/offline-tests.yml @@ -10,16 +10,14 @@ on: paths: - '**.go' - 'go.*' - - '.github/**' - - 'codecov.yml' + - '.github/workflows/offline-tests.yml' pull_request: branches: - main paths: - '**.go' - 'go.*' - - '.github/**' - - 'codecov.yml' + - '.github/workflows/offline-tests.yml' permissions: contents: read diff --git a/.github/workflows/sonarqube.yml b/.github/workflows/sonarqube.yml index dd91da2..9b2b899 100644 --- a/.github/workflows/sonarqube.yml +++ b/.github/workflows/sonarqube.yml @@ -10,10 +10,18 @@ permissions: on: push: branches: - - main # or the name of your main branch + - main + paths: + - '**.go' + - 'go.*' + - '.github/workflows/sonarqube.yml' pull_request: branches: - - main # or the name of your main branch + - main + paths: + - '**.go' + - 'go.*' + - '.github/workflows/sonarqube.yml' jobs: build: name: Build