Skip to content

Commit

Permalink
build: exclude markdown files from some GitHub Actions
Browse files Browse the repository at this point in the history
Ignore all markdown files when determining if test-asan, coverage-*, and
test-macos need to run.

Refs: https://docs.github.com/en/actions/reference/workflow-syntax-for-github-actions#patterns-to-match-file-paths

PR-URL: #39565
Reviewed-By: Michaël Zasso <targos@protonmail.com>
Reviewed-By: Richard Lau <rlau@redhat.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Tobias Nießen <tniessen@tnie.de>
  • Loading branch information
Trott authored and danielleadams committed Aug 16, 2021
1 parent 96d8ecb commit 9d38400
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 8 deletions.
10 changes: 6 additions & 4 deletions .github/workflows/coverage-linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,18 +4,20 @@ on:
pull_request:
types: [opened, synchronize, reopened, ready_for_review]
paths-ignore:
- 'doc/**'
- 'deps/**'
- '**.md'
- 'benchmark/**'
- 'deps/**'
- 'doc/**'
- 'tools/**'
push:
branches:
- master
- main
paths-ignore:
- 'doc/**'
- 'deps/**'
- '**.md'
- 'benchmark/**'
- 'deps/**'
- 'doc/**'
- 'tools/**'

env:
Expand Down
10 changes: 6 additions & 4 deletions .github/workflows/coverage-windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,18 +4,20 @@ on:
pull_request:
types: [opened, synchronize, reopened, ready_for_review]
paths-ignore:
- 'doc/**'
- 'deps/**'
- '**.md'
- 'benchmark/**'
- 'deps/**'
- 'doc/**'
- 'tools/**'
push:
branches:
- master
- main
paths-ignore:
- 'doc/**'
- 'deps/**'
- '**.md'
- 'benchmark/**'
- 'deps/**'
- 'doc/**'
- 'tools/**'

env:
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/test-asan.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,12 @@ on:
- v[0-9]+.x-staging
- v[0-9]+.x
paths-ignore:
- '**.md'
- 'doc/**'
pull_request:
types: [opened, synchronize, reopened, ready_for_review]
paths-ignore:
- '**.md'
- 'doc/**'

env:
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/test-macos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ on:
pull_request:
types: [opened, synchronize, reopened, ready_for_review]
paths-ignore:
- '**.md'
- 'doc/**'
push:
branches:
Expand All @@ -13,6 +14,7 @@ on:
- v[0-9]+.x-staging
- v[0-9]+.x
paths-ignore:
- '**.md'
- 'doc/**'

env:
Expand Down

0 comments on commit 9d38400

Please sign in to comment.