From 27009092c85c263712e3715df6b1ca53a290f01a Mon Sep 17 00:00:00 2001 From: Rich Trott Date: Fri, 22 Oct 2021 11:02:50 -0700 Subject: [PATCH] build: skip long-running Actions for README-only modifications MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit If the only file modified is README.md do not run test-linux or build-windows tasks. This will help streamline onboarding sessions but may help some other cases too. PR-URL: https://github.com/nodejs/node/pull/40571 Reviewed-By: Voltrex Reviewed-By: Colin Ihrig Reviewed-By: Zijian Liu Reviewed-By: Tobias Nießen Reviewed-By: Luigi Pinca Reviewed-By: James M Snell --- .github/workflows/build-windows.yml | 4 ++++ .github/workflows/test-linux.yml | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/.github/workflows/build-windows.yml b/.github/workflows/build-windows.yml index e6fd0a4b92fe23..992319168b7e9c 100644 --- a/.github/workflows/build-windows.yml +++ b/.github/workflows/build-windows.yml @@ -2,6 +2,8 @@ name: build-windows on: pull_request: + paths-ignore: + - "README.md" types: [opened, synchronize, reopened, ready_for_review] push: branches: @@ -10,6 +12,8 @@ on: - canary - v[0-9]+.x-staging - v[0-9]+.x + paths-ignore: + - "README.md" env: PYTHON_VERSION: '3.10' diff --git a/.github/workflows/test-linux.yml b/.github/workflows/test-linux.yml index 01227a0ff92289..b7dce4dd8a9672 100644 --- a/.github/workflows/test-linux.yml +++ b/.github/workflows/test-linux.yml @@ -2,6 +2,8 @@ name: test-linux on: pull_request: + paths-ignore: + - "README.md" types: [opened, synchronize, reopened, ready_for_review] push: branches: @@ -10,6 +12,8 @@ on: - canary - v[0-9]+.x-staging - v[0-9]+.x + paths-ignore: + - "README.md" env: PYTHON_VERSION: '3.10'