-
Notifications
You must be signed in to change notification settings - Fork 88
50 lines (49 loc) · 1.44 KB
/
main.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
name: Checks
on:
push:
branches:
- master
pull_request:
jobs:
spellchecking:
name: Spellchecking
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v4
with:
repository: rust-lang-ru/common-configs
path: common-configs
- name: Get all changed markdown files
uses: tj-actions/changed-files@v45
id: changed_files
with:
files: |
rustbook-ru/**/*.md
README.md
- name: List changed files
if: steps.changed_files.outputs.any_changed == 'true'
env:
ALL_CHANGED_FILES: ${{ steps.changed_files.outputs.all_changed_files }}
run: |
for file in ${ALL_CHANGED_FILES}; do
echo "$file was changed"
done
- uses: funkill/spellcheck-github-actions@hunspell-support-action
if: steps.changed_files.outputs.any_changed == 'true'
with:
task_name: Markdown
source_files: ${{ steps.changed_files.outputs.all_changed_files }}
gitlocalize-bug-checking:
name: Checking Gitlocalize bugs
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 200
- uses: rust-lang-ru/simpleinfra/gitocalize-bug-checker@master
- uses: rust-lang-ru/simpleinfra/gl-bugs-checker@master
if: ${{ github.event_name == 'pull_request' }}
with:
original_dir: rustbook-en/src
translation_dir: rustbook-ru/src