Skip to content

Commit ccfffb9

Browse files
authored
chore(rebuild): cli, view and api code format to trigger rebuild (#341)
1 parent c480e8b commit ccfffb9

File tree

1 file changed

+31
-35
lines changed

1 file changed

+31
-35
lines changed

.github/workflows/format.yaml

Lines changed: 31 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,6 @@ on:
55
branches:
66
- master
77
- feat/develop
8-
paths:
9-
- 'api/**'
10-
- 'view/**'
11-
- 'cli/**'
128
workflow_dispatch:
139

1410
permissions:
@@ -24,31 +20,31 @@ jobs:
2420
with:
2521
ref: ${{ github.head_ref }}
2622
token: ${{ secrets.GITHUB_TOKEN }}
27-
23+
2824
- uses: actions/setup-go@v5
2925
with:
30-
go-version: '1.22'
26+
go-version: "1.22"
3127
check-latest: true
3228
cache: true
3329
cache-dependency-path: api/go.sum
34-
30+
3531
- name: Run gofmt
3632
working-directory: api
3733
run: |
3834
echo "Running gofmt..."
3935
gofmt -l -w .
4036
git status
41-
37+
4238
- name: Commit API changes
4339
id: api-commit
4440
if: github.event_name == 'pull_request'
4541
uses: stefanzweifel/git-auto-commit-action@v5
4642
with:
47-
commit_message: 'style(api): format Go code'
43+
commit_message: "style(api): format Go code"
4844
branch: ${{ github.head_ref }}
49-
file_pattern: 'api/**/*.go'
50-
commit_user_name: 'github-actions[bot]'
51-
commit_user_email: 'github-actions[bot]@users.noreply.github.com'
45+
file_pattern: "api/**/*.go"
46+
commit_user_name: "github-actions[bot]"
47+
commit_user_email: "github-actions[bot]@users.noreply.github.com"
5248
skip_dirty_check: false
5349
skip_fetch: true
5450
skip_checkout: true
@@ -62,34 +58,34 @@ jobs:
6258
with:
6359
ref: ${{ github.head_ref }}
6460
token: ${{ secrets.GITHUB_TOKEN }}
65-
61+
6662
- uses: actions/setup-node@v4
6763
with:
68-
node-version: '20'
69-
cache: 'yarn'
64+
node-version: "20"
65+
cache: "yarn"
7066
cache-dependency-path: view/yarn.lock
71-
67+
7268
- name: Install Yarn
7369
run: npm install -g yarn
74-
70+
7571
- name: Install dependencies
7672
working-directory: view
7773
run: yarn install --frozen-lockfile
78-
74+
7975
- name: Run Prettier
8076
working-directory: view
8177
run: yarn format
82-
78+
8379
- name: Commit View changes
8480
id: view-commit
8581
if: github.event_name == 'pull_request'
8682
uses: stefanzweifel/git-auto-commit-action@v5
8783
with:
88-
commit_message: 'style(view): format frontend code'
84+
commit_message: "style(view): format frontend code"
8985
branch: ${{ github.head_ref }}
90-
file_pattern: 'view/**'
91-
commit_user_name: 'github-actions[bot]'
92-
commit_user_email: 'github-actions[bot]@users.noreply.github.com'
86+
file_pattern: "view/**"
87+
commit_user_name: "github-actions[bot]"
88+
commit_user_email: "github-actions[bot]@users.noreply.github.com"
9389
skip_dirty_check: false
9490
skip_fetch: true
9591
skip_checkout: true
@@ -103,38 +99,38 @@ jobs:
10399
with:
104100
ref: ${{ github.head_ref }}
105101
token: ${{ secrets.GITHUB_TOKEN }}
106-
102+
107103
- uses: actions/setup-python@v5
108104
with:
109-
python-version: '3.11'
110-
cache: 'pip'
111-
105+
python-version: "3.11"
106+
cache: "pip"
107+
112108
- name: Install Poetry
113109
uses: snok/install-poetry@v1
114110
with:
115111
version: latest
116112
virtualenvs-create: true
117113
virtualenvs-in-project: true
118-
114+
119115
- name: Install dependencies
120116
working-directory: cli
121117
run: poetry install --with dev --quiet
122-
118+
123119
- name: Run formatting
124120
working-directory: cli
125121
run: make format
126-
122+
127123
- name: Commit CLI changes
128124
id: cli-commit
129125
if: github.event_name == 'pull_request'
130126
uses: stefanzweifel/git-auto-commit-action@v5
131127
with:
132-
commit_message: 'style(cli): format Python code'
128+
commit_message: "style(cli): format Python code"
133129
branch: ${{ github.head_ref }}
134-
file_pattern: 'cli/**/*.py'
135-
commit_user_name: 'github-actions[bot]'
136-
commit_user_email: 'github-actions[bot]@users.noreply.github.com'
130+
file_pattern: "cli/**/*.py"
131+
commit_user_name: "github-actions[bot]"
132+
commit_user_email: "github-actions[bot]@users.noreply.github.com"
137133
skip_dirty_check: false
138134
skip_fetch: true
139135
skip_checkout: true
140-
disable_globbing: false
136+
disable_globbing: false

0 commit comments

Comments
 (0)