Skip to content

Commit 15fdaa6

Browse files
authored
Create baler.yml
1 parent 6f7626b commit 15fdaa6

1 file changed

Lines changed: 48 additions & 0 deletions

File tree

.github/workflows/baler.yml

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
# GitHub Actions workflow for Baler (BAd Link reportER) version 2.0.0.
2+
# This is available as the file "sample-workflow.yml" from the source
3+
# code repository for Baler: https://github.com/caltechlibrary/baler
4+
5+
name: Bad Link Reporter
6+
7+
# Configure this section ─────────────────────────────────────────────
8+
9+
env:
10+
# Files examined by the workflow:
11+
files: '*.md'
12+
13+
# Label assigned to issues created by this workflow:
14+
labels: bug
15+
16+
# Number of previous issues to check for duplicate reports.
17+
lookback: 10
18+
19+
# Time (sec) to wait on an unresponsive URL before trying once more.
20+
timeout: 15
21+
22+
# Optional file containing a list of URLs to ignore, one per line:
23+
ignore: .github/workflows/ignored-urls.txt
24+
25+
on:
26+
schedule: # Cron syntax is: "min hr day-of-month month day-of-week"
27+
- cron: 00 04 * * 1
28+
push:
29+
paths: ['**.md']
30+
workflow_dispatch:
31+
32+
# The rest of this file should be left as-is ─────────────────────────
33+
34+
run-name: Test links in Markdown files
35+
jobs:
36+
Baler:
37+
name: Link checker and reporter
38+
runs-on: ubuntu-latest
39+
permissions:
40+
issues: write
41+
steps:
42+
- uses: caltechlibrary/baler@v2
43+
with:
44+
files: ${{github.event.inputs.files || env.files}}
45+
labels: ${{github.event.inputs.labels || env.labels}}
46+
ignore: ${{github.event.inputs.ignore || env.ignore}}
47+
timeout: ${{github.event.inputs.timeout || env.timeout}}
48+
lookback: ${{github.event.inputs.lookback || env.lookback}}

0 commit comments

Comments
 (0)