-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
2f6d68b
commit 0bd7127
Showing
1 changed file
with
15 additions
and
3 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -19,14 +19,26 @@ jobs: | |
id: lychee | ||
uses: lycheeverse/[email protected] | ||
with: | ||
args: --verbose --no-progress --max-concurrency 2 --exclude-mail --exclude-link-local --exclude-loopback './**/*.md' --exclude portal.azure.com --exclude developers.sap.com | ||
args: --verbose --no-progress --max-concurrency 2 --exclude-link-local --exclude-loopback './**/*.md' --exclude portal.azure.com --exclude developers.sap.com | ||
output: ./lychee/out.md | ||
fail: true | ||
env: | ||
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}} | ||
- name: Create issue if error | ||
- name: Find existing issue | ||
id: find_issue | ||
uses: micalevisk/last-issue-action@v2 | ||
if: failure() | ||
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 | ||
if: failure() | ||
with: | ||
title: Link Checker Report | ||
# If issue number is empty a new issue gets created | ||
issue-number: ${{ steps.find_issue.outputs.issue-number }} | ||
content-filepath: ./lychee/out.md | ||
labels: broken link, automated issue |