Skip to content

Link Validator

Link Validator #208

name: Link Validator
on:
workflow_dispatch:
pull_request:
schedule:
- cron: '30 6 1 * *'
permissions:
contents: read
jobs:
validate-links:
runs-on: Akka-Default
if: github.event.repository.fork == false
steps:
- name: Run akka/github-actions-scripts
uses: akka/github-actions-scripts/setup_global_resolver@main
- name: Checkout
# https://github.com/actions/checkout/releases
uses: actions/checkout@v6
with:
# See https://github.com/actions/checkout/issues/299#issuecomment-677674415
ref: ${{ github.event.pull_request.head.sha }}
fetch-depth: 100
- name: Fetch tags
run: git fetch --depth=100 origin +refs/tags/*:refs/tags/*
- 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: sbt docs/makeSite
- name: Run Link Validator
run: |
VERSION=$(ls docs/target/site/libraries/akka-persistence-dynamodb)
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