-
Notifications
You must be signed in to change notification settings - Fork 0
29 lines (24 loc) · 929 Bytes
/
format_rst.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
name: RST Autoformatter
on: [push, pull_request]
jobs:
formatting:
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.10'
- name: Run RST Autoformatter
uses: CodeByAidan/rst-autoformatter-action@main
with:
# files: '**/*.rst' # works! - globbing is supported
# files: 'tests/*.rst' # works! - just another glob patterns
# files: 'tests/lines.rst' # works! - single file
# files: '{tests/admonitions,tests/escaped-text}.rst' # works! - brace expansion is supported (Unix trick)
# For more patterns, see https://mywiki.wooledge.org/glob#Globs
files: '**/*.rst'
commit: 'true'
github-username: 'github-actions'
commit-message: 'Automated RST formatting'