Skip to content

Commit e094614

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 e094614

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

.github/workflows/scala3doc.yaml

Lines changed: 6 additions & 1 deletion
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

0 commit comments

Comments
 (0)