🔗 检查链接 #7
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: 🔗 检查链接 | |
on: | |
workflow_dispatch: | |
schedule: | |
- cron: "00 16 1 * *" | |
jobs: | |
linkChecker: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- uses: shivammathur/setup-php@v2 | |
with: | |
php-version: 8.1 | |
- name: parse links | |
run: | | |
php generateMd.php | |
- name: Link Checker | |
id: lychee | |
uses: lycheeverse/lychee-action@v1.8.0 | |
env: | |
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}} | |
with: | |
args: >- | |
--verbose | |
--no-progress | |
--user-agent 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/123.0.0.0 Safari/537.36' | |
'Links.md' | |
- name: Create Issue From File | |
if: env.lychee_exit_code != 0 | |
uses: peter-evans/create-issue-from-file@v4 | |
with: | |
title: 🔗 链接检查报告 | |
content-filepath: ./lychee/out.md | |
labels: report |