Skip to content

Commit

Permalink
build: skip long-running Actions for README-only modifications
Browse files Browse the repository at this point in the history
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: #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>
  • Loading branch information
Trott authored and BethGriggs committed Nov 24, 2021
1 parent 7c7f879 commit 2700909
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/build-windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ name: build-windows

on:
pull_request:
paths-ignore:
- "README.md"
types: [opened, synchronize, reopened, ready_for_review]
push:
branches:
Expand All @@ -10,6 +12,8 @@ on:
- canary
- v[0-9]+.x-staging
- v[0-9]+.x
paths-ignore:
- "README.md"

env:
PYTHON_VERSION: '3.10'
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/test-linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ name: test-linux

on:
pull_request:
paths-ignore:
- "README.md"
types: [opened, synchronize, reopened, ready_for_review]
push:
branches:
Expand All @@ -10,6 +12,8 @@ on:
- canary
- v[0-9]+.x-staging
- v[0-9]+.x
paths-ignore:
- "README.md"

env:
PYTHON_VERSION: '3.10'
Expand Down

0 comments on commit 2700909

Please sign in to comment.