-
Notifications
You must be signed in to change notification settings - Fork 37
104 lines (87 loc) · 2.62 KB
/
content_validation.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
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
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"
jobs:
check_broken_links:
runs-on: ubuntu-latest-4-cores
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: Check links
run: |
source "$(werf ci-env github --as-file)"
task -o group -p site:check-broken-links
env:
WERF_REPO: "ghcr.io/${{ github.repository_owner }}/werfio"
spell_check_ru:
runs-on: ubuntu-latest-4-cores
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 -o group -p site:run-spell-check:ru
env:
WERF_REPO: "ghcr.io/${{ github.repository_owner }}/werfio"
spell_check_en:
runs-on: ubuntu-latest-4-cores
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 -o group -p site:run-spell-check:en
env:
WERF_REPO: "ghcr.io/${{ github.repository_owner }}/werfio"