Skip to content

Commit

Permalink
added a comment on github if the workflow fails
Browse files Browse the repository at this point in the history
  • Loading branch information
Gmin2 committed Feb 11, 2024
1 parent 01dee2c commit a9f2cfd
Showing 1 changed file with 8 additions and 12 deletions.
20 changes: 8 additions & 12 deletions .github/workflows/link-check.yml
Original file line number Diff line number Diff line change
@@ -1,20 +1,16 @@
name: Links (Fail Fast)
name: Check Links

on:
push:
paths:
- 'pages/blog/posts/**/*.md'
pull_request:
paths:
- 'pages/blog/posts/**/*.md'
types: [opened, synchronize, reopened]

jobs:
linkChecker:
check-links:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3

- name: Link Checker
uses: lycheeverse/[email protected]
- uses: actions/checkout@v2
- uses: lycheeverse/lychee-action@v1
- name: Comment Broken Links
uses: marocchino/sticky-pull-request-comment@v2
with:
fail: true
path: lychee/out.md

0 comments on commit a9f2cfd

Please sign in to comment.