Skip to content

Commit 3db5000

Browse files
committed
chore: update the "prettier" process to take into account only certain file types
1 parent 4eb1a05 commit 3db5000

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

.github/workflows/deploy.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,16 @@ jobs:
2222
uses: actions/checkout@v2
2323
with:
2424
# Make sure the actual branch is checked out when running on pull requests
25-
ref: ${{ github.head_ref }}
25+
ref: ${{ github.event.pull_request.base.ref }}
26+
27+
# This is important to fetch the changes to the previous commit
28+
fetch-depth: 0
2629

2730
- name: Prettify code
2831
uses: creyD/[email protected]
32+
with:
33+
prettier_options: --write src/**/*.{js,json,md}
34+
only_changed: True
2935
build:
3036
# The type of runner that the job will run on
3137
if: github.event_name != 'pull_request'

0 commit comments

Comments
 (0)