Skip to content

Commit

Permalink
Enhance link-checker workflow for pull request reporting (#529)
Browse files Browse the repository at this point in the history
* Update link-checker.yml

* Update link-checker.yml

* Update link-checker.yml
  • Loading branch information
guibranco authored Sep 14, 2024
1 parent 91dd8af commit 2d2d43d
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions .github/workflows/link-checker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ on:
- cron: 0 0 * * 0

concurrency:
group: links-cheker
group: links-checker
cancel-in-progress: true

jobs:
Expand All @@ -20,6 +20,7 @@ jobs:
permissions:
issues: write
contents: read
pull-requests: write

steps:

Expand Down Expand Up @@ -55,7 +56,7 @@ jobs:
run: sudo wg-quick down ./wg0.conf

- name: Create issue
if: env.lychee_exit_code != 0
if: github.event_name != 'pull_request' && env.lychee_exit_code != 0
uses: peter-evans/create-issue-from-file@v5
with:
title: πŸ”—βœ… Link checker report
Expand All @@ -66,3 +67,11 @@ jobs:
help wanted
hacktoberfest
content-filepath: ./lychee/out.md

- name: Update PR with comment
uses: mshick/add-pr-comment@v2
if: github.event_name == 'pull_request' && env.lychee_exit_code != 0
with:
refresh-message-position: true
message-id: 'link-checker-result'
message-path: ./lychee/out.md

0 comments on commit 2d2d43d

Please sign in to comment.