scala 2.13.14 #693
Workflow file for this run
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: | |
pull_request: | |
workflow_dispatch: | |
schedule: | |
- cron: '0 6 * * 1' | |
jobs: | |
validate-links: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
with: | |
# See https://github.com/actions/checkout/issues/299#issuecomment-677674415 | |
ref: ${{ github.event.pull_request.head.sha }} | |
# fetch everything https://github.com/actions/checkout#fetch-all-history-for-all-tags-and-branches | |
fetch-depth: 0 | |
- name: Setup Java 11 | |
uses: actions/setup-java@v4 | |
with: | |
distribution: temurin | |
java-version: 11 | |
- name: Cache Coursier cache | |
uses: coursier/cache-action@v6 | |
- name: Setup Coursier | |
uses: coursier/setup-action@v1 | |
- name: sbt site | |
run: sbt docs/makeSite | |
- name: Run Link Validator | |
run: | | |
VERSION=$(ls docs/target/site/docs/pekko-grpc) | |
sed -e "s/snapshot/$VERSION/" scripts/link-validator.conf > /tmp/link-validator.conf | |
cs launch net.runne::site-link-validator:0.2.2 -- /tmp/link-validator.conf |