Skip to content

Commit 18719a2

Browse files
Update check-broken-links.yml
1 parent 5020b6d commit 18719a2

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

.github/workflows/check-broken-links.yml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,14 +28,18 @@ jobs:
2828
env:
2929
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
3030

31-
- name: Create or update GitHub issue if broken links found
31+
- name: Add front-matter for issue
32+
if: failure()
33+
run: |
34+
echo -e "---\ntitle: Broken Links Detected\nlabels: bug, links\n---\n$(cat lychee/out.md)" > lychee/out.md
35+
36+
- name: Create or update GitHub issue
3237
if: failure()
3338
uses: JasonEtco/create-an-issue@v2
3439
env:
3540
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
3641
with:
3742
filename: lychee/out.md
38-
title: "Broken Links Detected"
39-
labels: bug, links
4043
update_existing: true
4144
search_existing: all
45+

0 commit comments

Comments
 (0)