Link Validator #3
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' | |
workflow_dispatch: | |
permissions: | |
contents: read | |
jobs: | |
validate-links: | |
runs-on: ubuntu-22.04 | |
if: github.repository == 'akka/akka' | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Checkout GitHub merge | |
if: github.event.pull_request | |
run: |- | |
git fetch origin pull/${{ github.event.pull_request.number }}/merge:scratch | |
git checkout scratch | |
- 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: create the Akka site | |
run: sbt -Dakka.genjavadoc.enabled=true "Javaunidoc/doc; Compile/unidoc; akka-docs/paradox" | |
- name: Run Link Validator | |
run: cs launch net.runne::site-link-validator:0.2.3 -- scripts/link-validator.conf |