mirror of
https://github.com/ad-si/awesome-3d-printing.git
synced 2026-04-30 03:49:02 -05:00
37 lines
845 B
YAML
37 lines
845 B
YAML
name: Lint Markdown and Check URLs
|
|
|
|
on:
|
|
push:
|
|
pull_request:
|
|
schedule:
|
|
# runs at 00:00 UTC every 5 days
|
|
- cron: "0 0 */5 * *"
|
|
|
|
jobs:
|
|
awesome-lint:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
with:
|
|
fetch-depth: 0
|
|
|
|
- name: Run Awesome Lint
|
|
run: make lint
|
|
|
|
check-urls:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
with:
|
|
fetch-depth: 0
|
|
|
|
- name: Check links
|
|
uses: lycheeverse/lychee-action@f796c8b7d468feb9b8c0a46da3fac0af6874d374 # v2.2.0
|
|
with:
|
|
args: |
|
|
--accept 403,429 --exclude 'https://www\.autodesk\.com'
|
|
--verbose --no-progress './**/*.md' './**/*.html' './**/*.rst'
|
|
|
|
- name: Fail if there were broken links
|
|
run: exit ${{ steps.lc.outputs.exit_code }}
|