-
Notifications
You must be signed in to change notification settings - Fork 39
106 lines (89 loc) · 2.69 KB
/
content_validation.yml
File metadata and controls
106 lines (89 loc) · 2.69 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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
name: Content Validation
on:
push:
paths:
- ".github/workflows/content_validation.yml"
- "_data/en/publications.yml"
- "_data/ru/publications.yml"
- "**/*.md"
- "**/*.md.liquid"
- "**/*.html"
- "scripts/docs/**"
workflow_dispatch:
env:
WERF_ENV: "production"
TASK_X_REMOTE_TASKFILES: "1"
WERFIO_GITHUB_TOKEN: "${{ secrets.API_TOKEN }}"
jobs:
check_broken_links:
runs-on: ubuntu-22.04
timeout-minutes: 60
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Install Task
uses: arduino/setup-task@v1
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
- name: Login to GitHub container registry
uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Install werf
uses: werf/actions/install@v2
- name: Check links
run: |
source "$(werf ci-env github --as-file)"
task --yes -o group -p site:check-broken-links
env:
WERF_REPO: "ghcr.io/${{ github.repository_owner }}/werfio"
spell_check_ru:
runs-on: ubuntu-22.04
timeout-minutes: 60
steps:
- name: Install werf
uses: werf/actions/install@v2
- name: Checkout code
uses: actions/checkout@v3
- name: Install Task
uses: arduino/setup-task@v1
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
- name: Login to GitHub container registry
uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Spell check
run: |
source "$(werf ci-env github --as-file)"
task --yes -o group -p site:run-spell-check:ru
env:
WERF_REPO: "ghcr.io/${{ github.repository_owner }}/werfio"
spell_check_en:
runs-on: ubuntu-22.04
timeout-minutes: 60
steps:
- name: Install werf
uses: werf/actions/install@v2
- name: Checkout code
uses: actions/checkout@v4
- name: Install Task
uses: arduino/setup-task@v1
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
- name: Login to GitHub container registry
uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Spell check
run: |
source "$(werf ci-env github --as-file)"
task --yes -o group -p site:run-spell-check:en
env:
WERF_REPO: "ghcr.io/${{ github.repository_owner }}/werfio"