Skip to content

Commit

Permalink
init
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexanderDokuchaev committed Feb 27, 2024
1 parent cae939e commit 1a3a24b
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 1 deletion.
9 changes: 8 additions & 1 deletion .github/workflows/validation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@ name: Validation

on:
push:
branches: [main]
branches:
- '*'
pull_request:
types:
- opened
Expand Down Expand Up @@ -43,3 +44,9 @@ jobs:

- name: Pytest
run: pytest tests -rfs -vv

md-dead-link-check:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
- uses: AlexanderDokuchaev/md-dead-link-check@gha
30 changes: 30 additions & 0 deletions action.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: 'Markdown dead link checker GitHub Action'
description: 'A GitHub Action to help you keep your Markdown files free of broken links!'
branding:
icon: 'external-link'
color: 'blue'

inputs:
config:
description: 'Config toml file.'
required: false
default: 'pyproject.toml'

runs:
using: 'composite'
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Install Python
uses: actions/setup-python@v4
with:
python-version: '3.10'

- name: Install md-dead-link-check
run: pip install md-dead-link-check==0.1
shell: bash

- name: Fetch the number's square
run: md-dead-link-check --config=${{ inputs.config }}
shell: bash

0 comments on commit 1a3a24b

Please sign in to comment.