Skip to content

Commit a106547

Browse files
Try autofix for text formatting (#2189)
* Try autofix for text formatting * Mess up some formatting * [autofix.ci] apply automated fixes --------- Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
1 parent cc0d19b commit a106547

File tree

1 file changed

+31
-0
lines changed

1 file changed

+31
-0
lines changed

.github/workflows/autofix.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: autofix.ci # needed to securely identify the workflow
2+
3+
on:
4+
pull_request:
5+
6+
permissions:
7+
contents: read
8+
9+
jobs:
10+
autofix-text:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: actions/checkout@v4
14+
- uses: actions/setup-go@v5
15+
with:
16+
go-version: "oldstable"
17+
18+
- name: Install shfmt
19+
run: go install mvdan.cc/sh/v3/cmd/shfmt@latest
20+
- name: Install npx (for prettier)
21+
run: sudo apt install nodejs
22+
23+
- name: Format Markdown
24+
run: ./devtools/format_md.sh
25+
- name: Format YAML
26+
run: ./devtools/format_yml.sh
27+
- name: Format Shell
28+
run: ./devtools/format_sh.sh
29+
30+
# Get latest version from https://autofix.ci/setup
31+
- uses: autofix-ci/action@dd55f44df8f7cdb7a6bf74c78677eb8acd40cd0a

0 commit comments

Comments
 (0)