Skip to content

Commit b9c0fde

Browse files
authored
Add broken link check workflow (opensearch-project#103)
Signed-off-by: Tyler Ohlsen <[email protected]>
1 parent 680cf70 commit b9c0fde

File tree

2 files changed

+24
-2
lines changed

2 files changed

+24
-2
lines changed
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
name: Link Checker
2+
on:
3+
push:
4+
branches: [main]
5+
pull_request:
6+
branches: [main]
7+
8+
jobs:
9+
linkchecker:
10+
runs-on: ubuntu-latest
11+
12+
steps:
13+
- uses: actions/checkout@v2
14+
- name: lychee Link Checker
15+
id: lychee
16+
uses: lycheeverse/lychee-action@master
17+
with:
18+
args: --accept=200,403,429 --exclude=localhost "**/*.html" "**/*.md" "**/*.txt" "**/*.json"
19+
env:
20+
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
21+
- name: Fail if there were link errors
22+
run: exit ${{ steps.lychee.outputs.exit_code }}

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[![AD Test](https://github.com/opensearch-project/anomaly-detection/workflows/Build%20and%20Test%20Anomaly%20detection/badge.svg)](https://github.com/opensearch-project/anomaly-detection/actions?query=workflow%3A%22Build+and+Test+Anomaly+detection%22+branch%3A%22main%22)
22
[![codecov](https://codecov.io/gh/opensearch-project/anomaly-detection/branch/main/graph/badge.svg?flag=plugin)](https://codecov.io/gh/opensearch-project/anomaly-detection)
3-
[![Documentation](https://img.shields.io/badge/doc-reference-blue)](https://opendistro.github.io/for-elasticsearch-docs/docs/ad/)
3+
[![Documentation](https://img.shields.io/badge/doc-reference-blue)](https://docs-beta.opensearch.org/monitoring-plugins/ad/index/)
44
[![Forum](https://img.shields.io/badge/chat-on%20forums-blue)](https://discuss.opendistrocommunity.dev/c/Use-this-category-for-all-questions-around-machine-learning-plugins)
55
![PRs welcome!](https://img.shields.io/badge/PRs-welcome!-success)
66

@@ -31,7 +31,7 @@ You should use anomaly detection plugin with the same version of [OpenSearch Ale
3131

3232
## Documentation
3333

34-
Please see [our documentation](https://docs-beta.opensearch.org/docs/ad/).
34+
Please see [our documentation](https://docs-beta.opensearch.org/monitoring-plugins/ad/index/).
3535

3636
## Contributing
3737

0 commit comments

Comments
 (0)