Skip to content

Commit f76ef2c

Browse files
yanglbmeacbin
authored andcommitted
chore: update prettier action
1 parent b713c3d commit f76ef2c

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

.github/workflows/prettier.yml

+3-7
Original file line numberDiff line numberDiff line change
@@ -4,25 +4,21 @@ on:
44
pull_request:
55
branches: [main]
66

7+
permissions: write-all
8+
79
jobs:
810
prettier:
911
runs-on: ubuntu-latest
10-
11-
permissions:
12-
contents: write
13-
12+
1413
steps:
1514
- name: Checkout
1615
uses: actions/checkout@v3
1716
with:
1817
ref: ${{ github.head_ref }}
19-
repository: ${{ github.event.pull_request.head.repo.full_name }}
20-
fetch-depth: 0
2118

2219
- name: Prettify code
2320
uses: creyD/prettier_action@v4.3
2421
with:
2522
prettier_options: --write **/*.{js,ts,php,md}
2623
prettier_plugins: '@prettier/plugin-php'
27-
only_changed: true
2824
commit_message: "style: format code with prettier"

0 commit comments

Comments
 (0)