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.

PR-URL: https://github.com/nodejs/node/pull/40571
Reviewed-By: Voltrex <mohammadkeyvanzade94@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Zijian Liu <lxxyxzj@gmail.com>
Reviewed-By: Tobias Nießen <tniessen@tnie.de>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
This commit is contained in:
Rich Trott
2021-10-22 11:02:50 -07:00
committed by Node.js GitHub Bot
parent 566365dd9d
commit 8eebc33c02
2 changed files with 8 additions and 0 deletions

View File

@@ -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'

View File

@@ -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'