[Tool] check releasenote links (#52956)

This commit is contained in:
Dan Roscigno 2024-11-18 19:38:12 -05:00 committed by GitHub
parent bc35b4f98c
commit 84c4abdffb
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 32 additions and 0 deletions

32
.github/workflows/releasenotes404.yaml vendored Normal file
View File

@ -0,0 +1,32 @@
name: Check releasenote links
on:
workflow_dispatch:
schedule:
- cron: "00 42 * * SUN"
jobs:
linkChecker:
runs-on: ubuntu-latest
permissions:
issues: write # required for peter-evans/create-issue-from-file
steps:
# Get this repo
- uses: actions/checkout@v4
- name: Link Checker
id: lychee
uses: lycheeverse/lychee-action@v2
with:
args: >
--config lychee.toml
--exclude https://github.com/StarRocks/starrocks/.*
"docs/en/release_notes/*.md" "docs/zh/release_notes/*.md"
- name: Create Issue From File
if: steps.lychee.outputs.exit_code != 0
uses: peter-evans/create-issue-from-file@v5
with:
title: Link Checker Report
content-filepath: ./lychee/out.md
labels: doc-feedback