Skip to content

Commit 25d2ae5

Browse files
authored
add: check.yml file to check some steps, like link checking
1 parent 4b6257c commit 25d2ae5

1 file changed

Lines changed: 30 additions & 0 deletions

File tree

.github/workflows/checking.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: Check
2+
3+
on:
4+
push:
5+
branches:
6+
- feature/ci_job
7+
workflow_dispatch:
8+
9+
permissions: write-all
10+
11+
jobs:
12+
linkChecker:
13+
runs-on: ubuntu-latest
14+
permissions:
15+
issues: write
16+
steps:
17+
- uses: actions/checkout@v5
18+
- name: Link Checker
19+
id: lychee
20+
uses: lycheeverse/lychee-action@v2
21+
with:
22+
fail: false
23+
24+
- name: Create Issue From File
25+
if: steps.lychee.outputs.exit_code != 0
26+
uses: peter-evans/create-issue-from-file@v5
27+
with:
28+
title: Link Checker Report
29+
content-filepath: ./lychee/out.md
30+
labels: report, automated issue

0 commit comments

Comments
 (0)