Files
awesome-3d-printing/.github/workflows/check-urls.yml
François Magimel 04de24e515 Lint code with awesome-lint
---------

Co-authored-by: Adrian Sieber <36796532+ad-si@users.noreply.github.com>
2025-09-12 18:57:28 +00:00

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 }}