-
Notifications
You must be signed in to change notification settings - Fork 124
46 lines (38 loc) · 1.25 KB
/
link-validator.yml
File metadata and controls
46 lines (38 loc) · 1.25 KB
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
44
45
46
name: Link Validator
on:
workflow_dispatch:
pull_request:
schedule:
- cron: '0 6 1 * *'
permissions:
contents: read
jobs:
validate-links:
runs-on: Akka-Default
steps:
- name: Checkout
# https://github.com/actions/checkout/releases
uses: actions/checkout@v6
with:
# fetch everything https://github.com/actions/checkout#fetch-all-history-for-all-tags-and-branches
fetch-depth: 0
- name: Setup global resolver
uses: ./.github/actions/global-resolver
- name: Cache Coursier cache
# https://github.com/coursier/cache-action/releases
uses: coursier/cache-action@v8.1.0
- name: Set up JDK 25
# https://github.com/coursier/setup-action/releases
uses: coursier/setup-action@v3.0.0
with:
jvm: temurin:1.25
apps: cs
- name: sbt site
run: |
cp .jvmopts-ghactions .jvmopts
sbt akka-grpc-docs/makeSite
- name: Run Link Validator
run: |
VERSION=$(ls docs/target/site/libraries/akka-grpc)
sed -e "s/snapshot/$VERSION/" scripts/link-validator.conf > /tmp/link-validator.conf
cs launch net.runne::site-link-validator:0.2.5 -- /tmp/link-validator.conf