Skip to content

Commit d7a96a2

Browse files
committed
Sync skip rules from ubuntu.yml
1 parent bb6674f commit d7a96a2

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

.github/workflows/wsl.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,33 @@
11
name: Ubuntu on WSL
22

33
on:
4+
push:
5+
paths-ignore:
6+
- 'doc/**'
7+
- '**/man/*'
8+
- '**.md'
9+
- '**.rdoc'
10+
- '**/.document'
11+
- '.*.yml'
412
pull_request:
13+
# Do not use paths-ignore for required status checks
14+
# https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/collaborating-on-repositories-with-code-quality-features/troubleshooting-required-status-checks#handling-skipped-but-required-checks
15+
merge_group:
516

617
jobs:
718
wsl:
819
runs-on: windows-latest
20+
21+
if: >-
22+
${{!(false
23+
|| contains(github.event.head_commit.message, '[DOC]')
24+
|| contains(github.event.head_commit.message, 'Document')
25+
|| contains(github.event.pull_request.title, '[DOC]')
26+
|| contains(github.event.pull_request.title, 'Document')
27+
|| contains(github.event.pull_request.labels.*.name, 'Documentation')
28+
|| (github.event_name == 'push' && github.event.pull_request.user.login == 'dependabot[bot]')
29+
)}}
30+
931
steps:
1032
- name: Install winget
1133
uses: Cyberboss/install-winget@v1

0 commit comments

Comments
 (0)