From 695ca554ac84f7b1c8d19597bf89ae41e5cb1710 Mon Sep 17 00:00:00 2001 From: Sebastian Sebald Date: Mon, 14 Aug 2023 12:43:24 +0200 Subject: [PATCH] chore: don't run build and CQL when changeset or github files change (#3272) --- .github/workflows/build.yml | 7 ++++++- .github/workflows/codeql-analysis.yml | 3 +++ 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 14dab82f3d..f8cf604bc7 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -1,6 +1,11 @@ name: Builds -on: ['pull_request'] +on: + pull_request: + branches: [main] + paths-ignore: + - '.changeset/**' + - '.github/**' concurrency: group: ${{ github.workflow }}-${{ github.ref }} diff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/codeql-analysis.yml index 06f37bcc5e..61d473fd2d 100644 --- a/.github/workflows/codeql-analysis.yml +++ b/.github/workflows/codeql-analysis.yml @@ -6,6 +6,9 @@ on: pull_request: # The branches below must be a subset of the branches above branches: [main] + paths-ignore: + - '.changeset/**' + - '.github/**' schedule: - cron: '32 23 * * 5'