Skip to content

Validate and update links (STF-557) #2

Validate and update links (STF-557)

Validate and update links (STF-557) #2

Workflow file for this run

name: Links
on:
push:
pull_request:
schedule:
- cron: "0 13 * * 1" # weekly, to catch external link rot without a commit
workflow_dispatch:
permissions: {}
jobs:
linkChecker:
runs-on: ubuntu-latest
permissions:
issues: write # required for peter-evans/create-issue-from-file
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
persist-credentials: false
- name: Link Checker
id: lychee
uses: lycheeverse/lychee-action@885c65f3dc543b57c898c8099f4e08c8afd178a2 # v2.7.0
with:
fail: true
args: "'./**/*.md' './src/**/*.java' './pom.xml'"
- name: Create Issue From File
if: github.event_name == 'schedule' && steps.lychee.outputs.exit_code != 0
uses: peter-evans/create-issue-from-file@fca9117c27cdc29c6c4db3b86c48e4115a786710 # v6.0.0
with:
title: Link Checker Report
content-filepath: ./lychee/out.md
labels: report, automated issue