mirror of
https://github.com/gaurav-nelson/github-action-markdown-link-check.git
synced 2024-09-11 11:25:47 +03:00
docs: added example to README.md
This commit is contained in:
parent
58f84fd654
commit
b4c9165c91
31
README.md
31
README.md
@ -191,6 +191,37 @@ Or mark 429 status code as alive:
|
||||
}
|
||||
```
|
||||
|
||||
## Example Usage
|
||||
|
||||
Consider a workflow file that checks for the status of hyperlinks on push to the master branch,
|
||||
|
||||
``` yml
|
||||
name: Check .md links
|
||||
|
||||
on:
|
||||
push: [master]
|
||||
|
||||
jobs:
|
||||
markdown-link-check:
|
||||
runs-on: ubuntu-latest
|
||||
# check out the latest version of the code
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
|
||||
# Checks the status of hyperlinks in .md files in verbose mode
|
||||
- name: Check links
|
||||
uses: gaurav-nelson/github-action-markdown-link-check@v1
|
||||
with:
|
||||
use-verbose-mode: 'yes'
|
||||
```
|
||||
A file `test.md` exists, containing
|
||||
|
||||
|
||||
|
||||
On running the workflow described above, the output shown below is obtained
|
||||
|
||||
|
||||
|
||||
## Versioning
|
||||
GitHub Action - Markdown link check follows the [GitHub recommended versioning strategy](https://github.com/actions/toolkit/blob/master/docs/action-versioning.md).
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user