Skip to content

Commit 0d10f13

Browse files
authored
change prettify action to w3c/aria way
1 parent c304598 commit 0d10f13

File tree

1 file changed

+13
-2
lines changed

1 file changed

+13
-2
lines changed

.github/workflows/prettify.yml

+13-2
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,20 @@ jobs:
3030
repository: ${{ github.event.pull_request.head.repo.full_name }}
3131
# This is important to fetch the changes to the previous commit
3232
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 }}"
3337

3438
- name: Prettify code
39+
id: prettify
3540
uses: creyD/[email protected]
3641
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"

0 commit comments

Comments
 (0)