Skip to content
This repository has been archived by the owner on Feb 13, 2024. It is now read-only.

update link checker to update existing issues #484

Merged
merged 1 commit into from
Apr 13, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 13 additions & 1 deletion .github/workflows/links-watcher-cron.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,22 @@ jobs:
output: ./lychee/out.md
env:
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
- name: Create issue when fail
- name: Find existing issue
id: find_issue
uses: micalevisk/last-issue-action@v2
if: ${{ steps.lychee.outputs.exit_code }} != 0
with:
state: open
labels: |
broken link
automated issue
- name: Create or update issue for broken links
uses: peter-evans/create-issue-from-file@v4
if: ${{ steps.lychee.outputs.exit_code }} != 0
with:
title: Link Checker Report
# If issue number is empty a new issue gets
issue-number: ${{ steps.find_issue.outputs.issue-number }}
content-filepath: ./lychee/out.md
labels: broken link, automated issue