Skip to content

Commit 3926860

Browse files
authored
Merge pull request #10853 from dotty-staging/add-ci-docs-filter
Add a way to skip scala3docs CI
2 parents 6a27db2 + 8784c02 commit 3926860

File tree

1 file changed

+12
-2
lines changed

1 file changed

+12
-2
lines changed

.github/workflows/scala3doc.yaml

+12-2
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,12 @@ jobs:
88
env:
99
AZURE_STORAGE_SAS_TOKEN: ${{ secrets.AZURE_STORAGE_SAS_TOKEN }}
1010
runs-on: ubuntu-latest
11-
if: "github.event_name == 'pull_request' || contains(github.event.ref, 'scala3doc') || contains(github.event.ref, 'master')"
11+
if: "( github.event_name == 'pull_request'
12+
&& !contains(github.event.pull_request.body, '[skip ci]')
13+
&& !contains(github.event.pull_request.body, '[skip docs]')
14+
)
15+
|| contains(github.event.ref, 'scala3doc')
16+
|| contains(github.event.ref, 'master')"
1217

1318
steps:
1419
- name: Git Checkout
@@ -67,7 +72,12 @@ jobs:
6772
env:
6873
AZURE_STORAGE_SAS_TOKEN: ${{ secrets.AZURE_STORAGE_SAS_TOKEN }}
6974
runs-on: ubuntu-latest
70-
if: "github.event_name == 'pull_request' || contains(github.event.ref, 'scala3doc') || contains(github.event.ref, 'master')"
75+
if: "( github.event_name == 'pull_request'
76+
&& !contains(github.event.pull_request.body, '[skip ci]')
77+
&& !contains(github.event.pull_request.body, '[skip docs]')
78+
)
79+
|| contains(github.event.ref, 'scala3doc')
80+
|| contains(github.event.ref, 'master')"
7181

7282
steps:
7383
- name: Git Checkout

0 commit comments

Comments
 (0)