Skip to content

Commit 293763c

Browse files
committed
ci: Create comment instead of issue for broken links
1 parent d43bd1e commit 293763c

2 files changed

Lines changed: 6 additions & 13 deletions

File tree

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

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,3 @@
1-
---
2-
title: Website Contains Broken Links
3-
labels:
4-
- content
5-
assignees:
6-
- lenderom
7-
---
8-
91
## Broken Links Detected
102

113
Broken Link Checker found broken links on https://fipguide.org

.github/workflows/linkcheck.yaml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -53,9 +53,10 @@ jobs:
5353
--exclude "www.trenitalia.fr"
5454
- uses: actions/checkout@v3
5555
if: failure()
56-
- uses: JasonEtco/create-an-issue@v2
57-
env:
58-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
59-
with:
60-
filename: ${{ env.ISSUE_TEMPLATE }}
56+
- name: Reopen issue and add comment
6157
if: failure()
58+
env:
59+
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
60+
run: |
61+
gh issue reopen 1001 || true
62+
gh issue comment 1001 --body-file $ISSUE_TEMPLATE

0 commit comments

Comments
 (0)