-
Notifications
You must be signed in to change notification settings - Fork 0
37 lines (30 loc) · 1.04 KB
/
prettier.yml
File metadata and controls
37 lines (30 loc) · 1.04 KB
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
name: Code formatting
on:
schedule:
- cron: '15 4 2 * *' # At 04:05 on day-of-month 2.
workflow_dispatch:
jobs:
formatting:
name: Code formatting
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
- uses: actions/setup-node@53b83947a5a98c8d113130e565377fae1a50d02f # v6
with:
node-version-file: ".node-version"
- name: Run make clean
run: make clean
- name: Run make init
run: make init
- name: Run make prettier
run: make prettier
# Commit results back to repository
- uses: stefanzweifel/git-auto-commit-action@04702edda442b2e678b25b537cec683a1493fcb9 # v7
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
commit_message: Code formatting via `make prettier`
branch: main
commit_user_name: Code formatting workflow bot
commit_user_email: bot@sourcectl.dev
commit_author: Code formatting workflow bot <bot@sourcectl.dev>