Skip to content

Commit 08b8209

Browse files
committed
TST: open an issue
1 parent 90e35e1 commit 08b8209

File tree

1 file changed

+12
-8
lines changed

1 file changed

+12
-8
lines changed

.github/workflows/linkcheck.yml

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,11 @@ on:
66
# UTC 12:00 is early morning in Australia
77
- cron: '0 12 * * *'
88
jobs:
9-
execution-tests-linux:
10-
name: Execution Tests (${{ matrix.python-version }}, ${{ matrix.os }})
11-
runs-on: ${{ matrix.os }}
12-
strategy:
13-
fail-fast: false
14-
matrix:
15-
os: ["ubuntu-latest"]
16-
python-version: ["3.12"]
9+
link-checking:
10+
name: Link Checking
11+
runs-on: "ubunut-latest"
12+
permissions:
13+
issues: write # required for peter-evans/create-issue-from-file
1714
steps:
1815
- name: Checkout
1916
uses: actions/checkout@v4
@@ -22,6 +19,13 @@ jobs:
2219
uses: lycheeverse/lychee-action@v2
2320
with:
2421
args: --accept 403 lectures/*.md
22+
- name: Create Issue From File
23+
if: steps.lychee.outputs.exit_code != 0
24+
uses: peter-evans/create-issue-from-file@v5
25+
with:
26+
title: Link Checker Report
27+
content-filepath: ./lychee/out.md
28+
labels: report, automated issue
2529
# - name: Setup Anaconda
2630
# uses: conda-incubator/setup-miniconda@v3
2731
# with:

0 commit comments

Comments
 (0)