cosmos-sdk/.github/workflows/md-link-checker.yml
dependabot[bot] 0e1d6203c0
build(deps): Bump rtCamp/action-slack-notify from 2.2.1 to 2.3.0 (#19790)
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: son trinh <trinhleson2000@gmail.com>
2024-03-20 10:25:55 +00:00

32 lines
859 B
YAML

name: Check Markdown links
on:
pull_request:
paths:
- "docs/**"
jobs:
markdown-link-check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- run: cd docs && sh ./pre.sh
- uses: gaurav-nelson/github-action-markdown-link-check@1.0.15
with:
folder-path: "docs"
- run: cd docs && sh ./post.sh
sims-notify-failure:
permissions:
contents: none
runs-on: ubuntu-latest
if: ${{ failure() }}
steps:
- name: Notify Slack on failure
uses: rtCamp/action-slack-notify@v2.3.0
env:
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }}
SLACK_CHANNEL: sdk-sims
SLACK_USERNAME: Broken Links
SLACK_ICON_EMOJI: ":skull:"
SLACK_COLOR: danger
SLACK_MESSAGE: Links are broken in docs
SLACK_FOOTER: ""