Skip to content

Commit 8c18391

Browse files
authored
Merge pull request #146 from creyD/dev
Minor Update
2 parents acebb0f + 6b98d6d commit 8c18391

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ jobs:
6060
uses: actions/checkout@v4
6161

6262
- name: Prettify code
63-
uses: creyD/prettier_action@v4.5
63+
uses: creyD/prettier_action@v4.6
6464
with:
6565
# This part is also where you can pass other options, for example:
6666
prettier_options: --write **/*.{js,md}
@@ -89,7 +89,7 @@ jobs:
8989
fetch-depth: 0
9090

9191
- name: Prettify code
92-
uses: creyD/prettier_action@v4.5
92+
uses: creyD/prettier_action@v4.6
9393
with:
9494
# This part is also where you can pass other options, for example:
9595
prettier_options: --write **/*.{js,md}
@@ -119,7 +119,7 @@ jobs:
119119
persist-credentials: false
120120

121121
- name: Prettify code
122-
uses: creyD/prettier_action@v4.5
122+
uses: creyD/prettier_action@v4.6
123123
with:
124124
prettier_options: --write **/*.{js,md}
125125
only_changed: True
@@ -150,7 +150,7 @@ jobs:
150150
persist-credentials: false
151151

152152
- name: Prettify code
153-
uses: creyD/prettier_action@v4.5
153+
uses: creyD/prettier_action@v4.6
154154
with:
155155
dry: True
156156
github_token: ${{ secrets.PERSONAL_GITHUB_TOKEN }}

entrypoint.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ EOF
2020
# If GIT_IDENTITY="actor"
2121
if [ "$INPUT_GIT_IDENTITY" = "author" ]; then
2222
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"
2424
elif [ "$INPUT_GIT_IDENTITY" = "actions" ]; then
2525
git config --global user.email "[email protected]"
2626
git config --global user.name "GitHub Action"
@@ -66,7 +66,7 @@ fi
6666
PRETTIER_RESULT=0
6767
echo "Prettifying files..."
6868
echo "Files:"
69-
prettier $INPUT_PRETTIER_OPTIONS \
69+
npx prettier $INPUT_PRETTIER_OPTIONS \
7070
|| { PRETTIER_RESULT=$?; echo "Problem running prettier with $INPUT_PRETTIER_OPTIONS"; exit 1; } >> $GITHUB_STEP_SUMMARY
7171

7272
echo "Prettier result: $PRETTIER_RESULT"

0 commit comments

Comments
 (0)