From 0b85a52beeacc6079325a0cfe400273e628177a0 Mon Sep 17 00:00:00 2001 From: Nick Volynkin Date: Tue, 1 Jul 2025 16:26:46 +0300 Subject: [PATCH 1/2] [ci] Skip Cozystack tests on PRs that only change the docs - Skip long workflows on PRs that only change files inside `./docs` directory. - Not applicable to other docs in this repository, such as `packages/apps/**/*.md`, as they're part of the build. Signed-off-by: Nick Volynkin --- .github/workflows/pull-requests-release.yaml | 2 ++ .github/workflows/pull-requests.yaml | 2 ++ 2 files changed, 4 insertions(+) diff --git a/.github/workflows/pull-requests-release.yaml b/.github/workflows/pull-requests-release.yaml index 23056641..7b047474 100644 --- a/.github/workflows/pull-requests-release.yaml +++ b/.github/workflows/pull-requests-release.yaml @@ -3,6 +3,8 @@ name: "Releasing PR" on: pull_request: types: [closed] + paths-ignore: + - 'docs/**/*' # Cancel in‑flight runs for the same PR when a new push arrives. concurrency: diff --git a/.github/workflows/pull-requests.yaml b/.github/workflows/pull-requests.yaml index 989e9f49..416a4b3c 100644 --- a/.github/workflows/pull-requests.yaml +++ b/.github/workflows/pull-requests.yaml @@ -3,6 +3,8 @@ name: Pull Request on: pull_request: types: [labeled, opened, synchronize, reopened] + paths-ignore: + - 'docs/**/*' # Cancel in‑flight runs for the same PR when a new push arrives. concurrency: From bc54bd7bb0546913a708c33f4a3e939418bae2af Mon Sep 17 00:00:00 2001 From: Nick Volynkin Date: Tue, 1 Jul 2025 19:35:44 +0300 Subject: [PATCH 2/2] [ci] Don't restart tests and pre-commit checks when PR is labeled I labeled my PR and CI was re-started, so now I have to wait even more. We have no labels governing CI, so there's no reason to restart it on `labeled`. Signed-off-by: Nick Volynkin --- .github/workflows/pre-commit.yml | 2 +- .github/workflows/pull-requests.yaml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/pre-commit.yml b/.github/workflows/pre-commit.yml index 7f41ffd8..8dcd859e 100644 --- a/.github/workflows/pre-commit.yml +++ b/.github/workflows/pre-commit.yml @@ -2,7 +2,7 @@ name: Pre-Commit Checks on: pull_request: - types: [labeled, opened, synchronize, reopened] + types: [opened, synchronize, reopened] concurrency: group: pre-commit-${{ github.workflow }}-${{ github.event.pull_request.number }} diff --git a/.github/workflows/pull-requests.yaml b/.github/workflows/pull-requests.yaml index 416a4b3c..2e6c4e10 100644 --- a/.github/workflows/pull-requests.yaml +++ b/.github/workflows/pull-requests.yaml @@ -2,7 +2,7 @@ name: Pull Request on: pull_request: - types: [labeled, opened, synchronize, reopened] + types: [opened, synchronize, reopened] paths-ignore: - 'docs/**/*'