Skip to content

Commit

Permalink
ci(lint-check): compress patterns
Browse files Browse the repository at this point in the history
  • Loading branch information
Frazer Smith committed Feb 24, 2021
1 parent 51bfda0 commit d93527e
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 3 deletions.
19 changes: 17 additions & 2 deletions .github/workflows/link-check.yml
Original file line number Diff line number Diff line change
@@ -1,20 +1,35 @@
name: Check Markdown for Broken Links

on:
push:
paths:
- "**/*.md"
pull_request:
paths:
- "**/*.md"
schedule:
# 01:30 every day
# ┌───────────── minute (0 - 59)
# │ ┌───────────── hour (0 - 23)
# │ │ ┌───────────── day of the month (1 - 31)
# │ │ │ ┌───────────── month (1 - 12 or JAN-DEC)
# │ │ │ │ ┌───────────── day of the week (0 - 6 or SUN-SAT)
# │ │ │ │ │
# │ │ │ │ │
# │ │ │ │ │
# * * * * *
- cron: "30 1 * * *"
# Allows this workflow to be run manually from the Actions tab
workflow_dispatch:

jobs:
link-check:
name: Link Check
if: github.event.pull_request.draft == false
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2.3.4
- uses: actions/setup-node@v2.1.5
with:
node-version: 14.x
- name: Run Linkinator
run: npx linkinator *.md --skip 'https://github.com/Fdawgs/.*/issues/, https://github.com/Fdawgs/.*/commit/, http://0.0.0.0, http://localhost'
run: npx linkinator '{,!(node_modules)/**/}*.md' --skip 'https://github.com/Fdawgs/.*/(commit|issues)/, http://0.0.0.0'
10 changes: 9 additions & 1 deletion .github/workflows/stale.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,15 @@ name: Mark Stale Issues and Pull Requests

on:
schedule:
# 01:30 every day
# ┌───────────── minute (0 - 59)
# │ ┌───────────── hour (0 - 23)
# │ │ ┌───────────── day of the month (1 - 31)
# │ │ │ ┌───────────── month (1 - 12 or JAN-DEC)
# │ │ │ │ ┌───────────── day of the week (0 - 6 or SUN-SAT)
# │ │ │ │ │
# │ │ │ │ │
# │ │ │ │ │
# * * * * *
- cron: "30 1 * * *"

jobs:
Expand Down

0 comments on commit d93527e

Please sign in to comment.