Skip to content

Commit 2486ca5

Browse files
authored
chore: update linter workflow (#1747)
1 parent 825a125 commit 2486ca5

File tree

2 files changed

+24
-7
lines changed

2 files changed

+24
-7
lines changed

.github/workflows/black-lint.yml

+2-7
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,8 @@
11
name: black-linter
22

33
on:
4-
pull_request_target:
5-
types:
6-
- opened
7-
- edited
8-
- synchronize
9-
branches:
10-
- main
4+
push: {}
5+
pull_request: {}
116

127
jobs:
138
build:

.github/workflows/pretter-lint.yml

+22
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
name: prettier-linter
2+
3+
on:
4+
push: {}
5+
pull_request: {}
6+
7+
jobs:
8+
prettier:
9+
runs-on: ubuntu-latest
10+
11+
steps:
12+
- name: Checkout
13+
uses: actions/checkout@v4
14+
with:
15+
ref: ${{ github.head_ref }}
16+
fetch-depth: 0
17+
18+
- name: Prettify code
19+
uses: creyD/prettier_action@v4.3
20+
with:
21+
prettier_options: --write **/*.{md,js,ts}
22+
only_changed: True

0 commit comments

Comments
 (0)