forked from airbytehq/airbyte
-
Notifications
You must be signed in to change notification settings - Fork 0
49 lines (44 loc) · 1.9 KB
/
doc-link-check.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
# Perform link check on all markdown files
# https://github.com/gaurav-nelson/github-action-markdown-link-check
name: Check for broken links in docs
on:
workflow_dispatch:
schedule:
- cron: '0 18 * * *'
jobs:
markdown-link-check:
timeout-minutes: 50
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
# check all files on master
- uses: gaurav-nelson/github-action-markdown-link-check@v1
with:
use-quiet-mode: 'yes'
check-modified-files-only: 'no'
config-file: .github/workflows/doc-link-check.json
# posts to #_doc_link_checker
- name: Publish Success to Slack
if: success()
uses: abinoda/slack-action@master
env:
SLACK_BOT_TOKEN: ${{ secrets.DOC_LINK_CHECKER_BOT_TOKEN }}
with:
args: >-
{\"channel\": \"C02MG7B7MT6\", \"blocks\":[
{\"type\":\"section\",\"text\":{\"type\":\"mrkdwn\",\"text\":\"Succeeded! :white_check_mark:\n\"}},
{\"type\":\"section\",\"text\":{\"type\":\"mrkdwn\",\"text\":\":octavia-rocket: <https://github.com/${{github.repository}}/actions/runs/${{github.run_id}}|View Action Run> :octavia-rocket:\"}},
{\"type\":\"divider\"}]}
# posts to #_doc_link_checker
- name: Publish Failure to Slack
if: failure()
uses: abinoda/slack-action@master
env:
SLACK_BOT_TOKEN: ${{ secrets.DOC_LINK_CHECKER_BOT_TOKEN }}
with:
args: >-
{\"channel\": \"C02MG7B7MT6\", \"blocks\":[
{\"type\":\"divider\"},
{\"type\":\"section\",\"text\":{\"type\":\"mrkdwn\",\"text\":\"Failed! :bangbang:\n\"}},
{\"type\":\"section\",\"text\":{\"type\":\"mrkdwn\",\"text\":\":octavia-rocket: <https://github.com/${{github.repository}}/actions/runs/${{github.run_id}}|View Action Run> :octavia-rocket:\"}},
{\"type\":\"divider\"}]}