Skip to content

Commit 8784c02

Browse files
committed
Add a way to skip scala3docs CI
Now we can skip the docs CI using `[skip ci]` or `[skip docs]`.
1 parent 8631782 commit 8784c02

File tree

1 file changed

+12
-2
lines changed

1 file changed

+12
-2
lines changed

.github/workflows/scala3doc.yaml

Lines changed: 12 additions & 2 deletions
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)