Skip to content

Commit

Permalink
fix: CI link checker workflow (automated bug) (#177)
Browse files Browse the repository at this point in the history
  • Loading branch information
tungbq authored May 13, 2024
2 parents 04f52ba + 3f4de27 commit aa4e04c
Showing 1 changed file with 9 additions and 8 deletions.
17 changes: 9 additions & 8 deletions .github/workflows/link-checker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,22 +3,23 @@ name: Links Checker
on:
workflow_dispatch:
schedule:
- cron: "0 0 1,15 * *" # twice a month
- cron: "0 0 1,15 * *" # twice a month

jobs:
linkChecker:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Checkout code
uses: actions/checkout@v3

- name: Link Checker
- name: Run Link Checker
id: lychee
uses: lycheeverse/lychee-action@v1.8.0

- name: Create Issue From File
if: env.lychee_exit_code != 0
- name: Create Issue for Broken Links
if: ${{ failure() }}
uses: peter-evans/create-issue-from-file@v4
with:
title: Link Checker Report
content-filepath: ./lychee/out.md
labels: report, automated issue, good first issue
title: 'Bug: Found Broken Link (help wanted)'
content-filepath: './lychee/out.md'
labels: 'report, automated issue, good first issue'

0 comments on commit aa4e04c

Please sign in to comment.