From c1322bc24fc199687090543633cc2b0feb1f221b Mon Sep 17 00:00:00 2001 From: n3k0m4 <46537724+n3k0m4@users.noreply.github.com> Date: Mon, 19 Sep 2022 13:10:26 +0200 Subject: [PATCH] Resolves sigstore/community#121 (#2263) * Squash & merge * add paths to all needed workflows * fixing action versions * remove whitespace Signed-off-by: n3k0m4 * lint Signed-off-by: n3k0m4 Signed-off-by: n3k0m4 --- .github/workflows/build.yaml | 8 ++++++++ .github/workflows/codeql-analysis.yml | 8 ++++++++ .github/workflows/cross.yaml | 8 ++++++++ .github/workflows/e2e-with-binary.yml | 9 ++++++++- .github/workflows/e2e_tests.yml | 8 ++++++++ .github/workflows/github-oidc.yaml | 8 ++++++++ .github/workflows/tests.yaml | 8 ++++++++ 7 files changed, 56 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index 68e3aa3c8a8..74ab081b48d 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -17,6 +17,14 @@ name: CI-Container-Build on: push: + paths: + - '**' + - '!**.md' + - '!doc/**' + - '!**.txt' + - '!images/**' + - '!LICENSE' + - 'test/**' branches: - main - release-* diff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/codeql-analysis.yml index e9a460ce8e5..4196257e0b4 100644 --- a/.github/workflows/codeql-analysis.yml +++ b/.github/workflows/codeql-analysis.yml @@ -17,6 +17,14 @@ name: CodeQL on: push: + paths: + - '**' + - '!**.md' + - '!doc/**' + - '!**.txt' + - '!images/**' + - '!LICENSE' + - 'test/**' branches: [ main ] env: diff --git a/.github/workflows/cross.yaml b/.github/workflows/cross.yaml index 3edf467463d..aced4cbb77f 100644 --- a/.github/workflows/cross.yaml +++ b/.github/workflows/cross.yaml @@ -1,5 +1,13 @@ on: push: + paths: + - '**' + - '!**.md' + - '!doc/**' + - '!**.txt' + - '!images/**' + - '!LICENSE' + - 'test/**' branches: - main - release-* diff --git a/.github/workflows/e2e-with-binary.yml b/.github/workflows/e2e-with-binary.yml index 601229c7987..e9f7558403b 100644 --- a/.github/workflows/e2e-with-binary.yml +++ b/.github/workflows/e2e-with-binary.yml @@ -14,10 +14,17 @@ # limitations under the License. name: e2e-with-binary - # Run on every push, and allow it to be run manually. on: push: + paths: + - '**' + - '!**.md' + - '!doc/**' + - '!**.txt' + - '!images/**' + - '!LICENSE' + - 'test/**' branches: [ 'main' ] workflow_dispatch: diff --git a/.github/workflows/e2e_tests.yml b/.github/workflows/e2e_tests.yml index 91158bc4c97..d2473ab59fc 100644 --- a/.github/workflows/e2e_tests.yml +++ b/.github/workflows/e2e_tests.yml @@ -18,6 +18,14 @@ name: e2e-tests # Run on every push, and allow it to be run manually. on: push: + paths: + - '**' + - '!**.md' + - '!doc/**' + - '!**.txt' + - '!images/**' + - '!LICENSE' + - 'test/**' branches: - "main" workflow_dispatch: diff --git a/.github/workflows/github-oidc.yaml b/.github/workflows/github-oidc.yaml index 3d40b91205f..50beef589fd 100644 --- a/.github/workflows/github-oidc.yaml +++ b/.github/workflows/github-oidc.yaml @@ -15,6 +15,14 @@ name: Test GitHub OIDC on: push: + paths: + - '**' + - '!**.md' + - '!doc/**' + - '!**.txt' + - '!images/**' + - '!LICENSE' + - 'test/**' branches: [ 'main', 'release-*' ] schedule: - cron: '0 1 * * *' # 1AM UTC diff --git a/.github/workflows/tests.yaml b/.github/workflows/tests.yaml index 2c7dbf98190..bab86e9357f 100644 --- a/.github/workflows/tests.yaml +++ b/.github/workflows/tests.yaml @@ -17,6 +17,14 @@ name: CI-Tests on: workflow_dispatch: push: + paths: + - '**' + - '!**.md' + - '!doc/**' + - '!**.txt' + - '!images/**' + - '!LICENSE' + - 'test/**' branches: ['main', 'release-*'] pull_request: