Link Validator #348
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 | |
permissions: {} | |
on: | |
pull_request: | |
workflow_dispatch: | |
schedule: | |
- cron: '0 6 * * 1' | |
jobs: | |
validate-links: | |
runs-on: ubuntu-20.04 | |
if: github.repository == 'apache/pekko-management' | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- 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: Setup Java 8 | |
uses: actions/setup-java@v4 | |
with: | |
distribution: temurin | |
java-version: 8 | |
- name: Cache Coursier cache | |
uses: coursier/cache-action@v6 | |
- name: Setup Coursier | |
uses: coursier/setup-action@v1.3.3 | |
- name: Create the Pekko site | |
run: sbt "unidoc; docs/paradox" | |
- name: Run Link Validator | |
run: cs launch net.runne::site-link-validator:0.2.2 -- scripts/link-validator.conf |