From 531efa7623c780649eb8e667cccced9d05ca2f8b 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 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. --- .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'