-
Notifications
You must be signed in to change notification settings - Fork 1
39 lines (35 loc) · 948 Bytes
/
pr-check.yaml
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
name: Pull Request Checks
on:
pull_request:
branches:
- main
workflow_dispatch:
jobs:
spellcheck:
name: Spellcheck
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected]
name: Checkout
- id: changed_files
name: Changed Files
uses: tj-actions/changed-files@v45
with:
files: |
**.mdx
files_ignore: |
docs/api/**
- name: List all changed files
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: rojopolis/[email protected]
name: Spellcheck
if: ${{ steps.changed_files.outputs.all_changed_files }}
with:
config_path: spellcheck.yaml
source_files: ${{ steps.changed_files.outputs.all_changed_files }}
task_name: Markdown