-
Notifications
You must be signed in to change notification settings - Fork 19
Expand file tree
/
Copy pathwebsite_broken_links_checker.yml
More file actions
47 lines (42 loc) · 1.12 KB
/
website_broken_links_checker.yml
File metadata and controls
47 lines (42 loc) · 1.12 KB
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
name: Broken links checker
on:
push:
branches: [main]
paths:
- docs
schedule:
- cron: "0 8 * * *"
pull_request:
repository_dispatch:
types: [check-broken-links]
workflow_dispatch:
jobs:
check_links:
name: Links checker
runs-on: ubuntu-22.04
strategy:
fail-fast: false
matrix:
lang: [ru, en]
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Install Task
uses: arduino/setup-task@v2
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
- name: Check ru broken links
if: matrix.lang == 'ru'
run: task docs:check-broken-links
- name: Check en broken links
if: matrix.lang == 'en'
run: task docs:check-broken-links language=en
notification:
name: Notification
if: always()
needs: check_links
uses: werf/common-ci/.github/workflows/notification.yml@main
secrets:
loopNotificationGroup: ${{ secrets.LOOP_NOTIFICATION_GROUP }}
webhook: ${{ secrets.LOOP_NOTIFICATION_WEBHOOK }}
notificationChannel: ${{ secrets.LOOP_NOTIFICATION_CHANNEL }}