Commit 0d10f13 1 parent c304598 commit 0d10f13 Copy full SHA for 0d10f13
File tree 1 file changed +13
-2
lines changed
1 file changed +13
-2
lines changed Original file line number Diff line number Diff line change 30
30
repository : ${{ github.event.pull_request.head.repo.full_name }}
31
31
# This is important to fetch the changes to the previous commit
32
32
fetch-depth : 0
33
+
34
+ - name : Check if PR is from a fork
35
+ id : check_fork
36
+ run : echo "::set-output name=is_fork::${{ github.event.pull_request.head.repo.fork }}"
33
37
34
38
- name : Prettify code
39
+ id : prettify
35
40
36
41
with :
37
- prettier_options : --write .
38
- only_changed : True
42
+ dry : true
43
+ prettier_options : --write
44
+ commit_message : " chore: prettier"
45
+ continue-on-error : true
46
+
47
+ - name : Handle commit failure
48
+ if : ${{ steps.prettify.outcome == 'failure' && steps.check_fork.outputs.is_fork == 'true' }}
49
+ run : echo "Please run prettier locally"
You can’t perform that action at this time.
0 commit comments