-
Notifications
You must be signed in to change notification settings - Fork 124
34 lines (27 loc) · 912 Bytes
/
link-validator.yml
File metadata and controls
34 lines (27 loc) · 912 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
name: Link Validator
on:
pull_request_target:
branches: [main, master]
schedule:
- cron: '0 6 * * 1'
jobs:
validate-links:
runs-on: ubuntu-18.04
steps:
- name: Checkout
uses: actions/checkout@v2
with:
# See https://github.com/actions/checkout/issues/299#issuecomment-677674415
ref: ${{ github.event.pull_request.head.sha }}
- name: Set up JDK 11
uses: olafurpg/setup-scala@v10
with:
java-version: adopt@1.11.0-9
- name: Cache Coursier cache
uses: coursier/cache-action@v5
- name: sbt site
run: sbt akka-grpc-docs/makeSite
- name: Install Coursier command line tool
run: curl -fLo cs https://git.io/coursier-cli-linux && chmod +x cs && ./cs
- name: Run Link Validator
run: ./cs launch net.runne::site-link-validator:0.2.0 -- scripts/link-validator.conf