-
Notifications
You must be signed in to change notification settings - Fork 18
43 lines (35 loc) · 1.16 KB
/
link-validator.yml
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
35
36
37
38
39
40
41
42
43
name: Link Validator
on:
pull_request:
workflow_dispatch:
schedule:
- cron: '0 6 * * 1'
jobs:
validate-links:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
# See https://github.com/actions/checkout/issues/299#issuecomment-677674415
ref: ${{ github.event.pull_request.head.sha }}
# fetch everything https://github.com/actions/checkout#fetch-all-history-for-all-tags-and-branches
fetch-depth: 0
- name: Setup Java 11
uses: actions/setup-java@v4
with:
distribution: temurin
java-version: 11
- name: Install sbt
uses: sbt/setup-sbt@v1
- name: Cache Coursier cache
uses: coursier/cache-action@v6
- name: Setup Coursier
uses: coursier/setup-action@v1
- name: sbt site
run: sbt docs/makeSite
- name: Run Link Validator
run: |
VERSION=$(ls docs/target/site/docs/pekko-grpc)
sed -e "s/snapshot/$VERSION/" scripts/link-validator.conf > /tmp/link-validator.conf
cs launch net.runne::site-link-validator:0.2.2 -- /tmp/link-validator.conf