Skip to content

Commit

Permalink
Update links-watcher.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
MartinPankraz authored Jan 16, 2024
1 parent 2f6d68b commit 0bd7127
Showing 1 changed file with 15 additions and 3 deletions.
18 changes: 15 additions & 3 deletions .github/workflows/links-watcher.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 0bd7127

Please sign in to comment.