pekko/.github/workflows/link-validator.yml
2023-02-14 17:32:47 +01:00

40 lines
1.1 KiB
YAML

name: Link Validator
on:
schedule:
- cron: '0 6 * * 1'
workflow_dispatch:
permissions: {}
jobs:
validate-links:
runs-on: ubuntu-20.04
if: github.repository == 'apache/incubator-pekko'
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: Setup Java 11
uses: actions/setup-java@v3
with:
distribution: temurin
java-version: 11
- name: Cache Coursier cache
uses: coursier/cache-action@v6.4.0
- name: create the Pekko site
run: sbt -Dpekko.genjavadoc.enabled=true "Javaunidoc/doc; Compile/unidoc; docs/paradox"
- name: Install Coursier command line tool
run: curl -fLo cs https://git.io/coursier-cli-linux && chmod +x cs && ./cs
- name: Run Link Validator
run: ./cs launch net.runne::site-link-validator:0.2.2 -- scripts/link-validator.conf