Link Validator #1016
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Link Validator | |
on: | |
schedule: | |
- cron: '0 6 * * 1' | |
permissions: | |
contents: read | |
jobs: | |
validate-links: | |
runs-on: ubuntu-22.04 | |
steps: | |
- name: Checkout | |
uses: actions/[email protected] | |
with: | |
# fetch everything https://github.com/actions/checkout#fetch-all-history-for-all-tags-and-branches | |
fetch-depth: 0 | |
- name: Cache Coursier cache | |
uses: coursier/[email protected] | |
- name: Set up JDK 11 | |
uses: coursier/[email protected] | |
with: | |
jvm: temurin:1.11 | |
apps: cs | |
- name: sbt site | |
run: sbt akka-grpc-docs/makeSite | |
- name: Run Link Validator | |
run: | | |
VERSION=$(ls docs/target/site/docs/akka-grpc) | |
sed -e "s/snapshot/$VERSION/" scripts/link-validator.conf > /tmp/link-validator.conf | |
cs launch net.runne::site-link-validator:0.2.3 -- /tmp/link-validator.conf |