We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4eb1a05 commit 3db5000Copy full SHA for 3db5000
.github/workflows/deploy.yml
@@ -22,10 +22,16 @@ jobs:
22
uses: actions/checkout@v2
23
with:
24
# Make sure the actual branch is checked out when running on pull requests
25
- ref: ${{ github.head_ref }}
+ ref: ${{ github.event.pull_request.base.ref }}
26
+
27
+ # This is important to fetch the changes to the previous commit
28
+ fetch-depth: 0
29
30
- name: Prettify code
31
uses: creyD/[email protected]
32
+ with:
33
+ prettier_options: --write src/**/*.{js,json,md}
34
+ only_changed: True
35
build:
36
# The type of runner that the job will run on
37
if: github.event_name != 'pull_request'
0 commit comments