Skip to content

Commit a383d47

Browse files
authored
allow running external link-checking manually (#1379)
1 parent 444cd27 commit a383d47

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

.github/workflows/ci.yaml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ name: scala-lang docs
22

33
on:
44
pull_request:
5+
workflow_dispatch:
56
schedule:
67
- cron: '00 0 * * *'
78

@@ -22,11 +23,11 @@ jobs:
2223
( ! grep -qie Error -e Warn error.log )
2324
find ./_site \( -type d \( -name events -o -name training \) -prune -false \) -o \( -type f ! -name error.log -empty \)
2425
find ./_site \( -type d \( -name events -o -name training \) -prune -false \) -o \( -type f ! -name error.log -empty \) | ( ! read )
25-
- name: Proofing (Pull Request)
26-
if: ${{ github.event_name != 'schedule' }}
26+
- name: Proofing (local links only)
27+
if: github.event_name == 'pull_request'
2728
run: |
2829
bundle exec htmlproofer ./_site/ --disable-external --only-4xx --empty-alt-ignore --allow-hash-href
29-
- name: Proofing (Cron)
30-
if: ${{ github.event_name == 'schedule' }}
30+
- name: Proofing (all links)
31+
if: github.event_name != 'pull_request'
3132
run: |
3233
bundle exec htmlproofer ./_site/ --external_only --only-4xx --http-status-ignore "400,401,429" --empty-alt-ignore --allow-hash-href --url-ignore "/trends.google.com/,/pgp.mit.edu/,/www.oracle.com/,/scalafiddle.io/" --typhoeus-config='{"headers":{"Accept-Encoding":"gzip, deflate"}}'

0 commit comments

Comments
 (0)