File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change 60
60
uses : actions/checkout@v4
61
61
62
62
- name : Prettify code
63
- uses : creyD/prettier_action@v4.5
63
+ uses : creyD/prettier_action@v4.6
64
64
with :
65
65
# This part is also where you can pass other options, for example:
66
66
prettier_options : --write **/*.{js,md}
89
89
fetch-depth : 0
90
90
91
91
- name : Prettify code
92
- uses : creyD/prettier_action@v4.5
92
+ uses : creyD/prettier_action@v4.6
93
93
with :
94
94
# This part is also where you can pass other options, for example:
95
95
prettier_options : --write **/*.{js,md}
@@ -119,7 +119,7 @@ jobs:
119
119
persist-credentials : false
120
120
121
121
- name : Prettify code
122
- uses : creyD/prettier_action@v4.5
122
+ uses : creyD/prettier_action@v4.6
123
123
with :
124
124
prettier_options : --write **/*.{js,md}
125
125
only_changed : True
@@ -150,7 +150,7 @@ jobs:
150
150
persist-credentials : false
151
151
152
152
- name : Prettify code
153
- uses : creyD/prettier_action@v4.5
153
+ uses : creyD/prettier_action@v4.6
154
154
with :
155
155
dry : True
156
156
github_token : ${{ secrets.PERSONAL_GITHUB_TOKEN }}
Original file line number Diff line number Diff line change 20
20
# If GIT_IDENTITY="actor"
21
21
if [ " $INPUT_GIT_IDENTITY " = " author" ]; then
22
22
git config --global user.name " $GITHUB_ACTOR "
23
- git config --global user.email " $GITHUB_ACTOR @users.noreply.github.com"
23
+ git config --global user.email " $GITHUB_ACTOR_ID + $ GITHUB_ACTOR @users.noreply.github.com"
24
24
elif [ " $INPUT_GIT_IDENTITY " = " actions" ]; then
25
25
git config --global user.email
" [email protected] "
26
26
git config --global user.name " GitHub Action"
66
66
PRETTIER_RESULT=0
67
67
echo " Prettifying files..."
68
68
echo " Files:"
69
- prettier $INPUT_PRETTIER_OPTIONS \
69
+ npx prettier $INPUT_PRETTIER_OPTIONS \
70
70
|| { PRETTIER_RESULT=$? ; echo " Problem running prettier with $INPUT_PRETTIER_OPTIONS " ; exit 1; } >> $GITHUB_STEP_SUMMARY
71
71
72
72
echo " Prettier result: $PRETTIER_RESULT "
You can’t perform that action at this time.
0 commit comments