diff --git a/README.md b/README.md index 8fee7de..1478774 100644 --- a/README.md +++ b/README.md @@ -60,7 +60,7 @@ jobs: uses: actions/checkout@v4 - name: Prettify code - uses: creyD/prettier_action@v4.5 + uses: creyD/prettier_action@v4.6 with: # This part is also where you can pass other options, for example: prettier_options: --write **/*.{js,md} @@ -89,7 +89,7 @@ jobs: fetch-depth: 0 - name: Prettify code - uses: creyD/prettier_action@v4.5 + uses: creyD/prettier_action@v4.6 with: # This part is also where you can pass other options, for example: prettier_options: --write **/*.{js,md} @@ -119,7 +119,7 @@ jobs: persist-credentials: false - name: Prettify code - uses: creyD/prettier_action@v4.5 + uses: creyD/prettier_action@v4.6 with: prettier_options: --write **/*.{js,md} only_changed: True @@ -150,7 +150,7 @@ jobs: persist-credentials: false - name: Prettify code - uses: creyD/prettier_action@v4.5 + uses: creyD/prettier_action@v4.6 with: dry: True github_token: ${{ secrets.PERSONAL_GITHUB_TOKEN }} diff --git a/entrypoint.sh b/entrypoint.sh index 7c8f4bf..ec9b329 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -20,7 +20,7 @@ EOF # If GIT_IDENTITY="actor" if [ "$INPUT_GIT_IDENTITY" = "author" ]; then git config --global user.name "$GITHUB_ACTOR" - git config --global user.email "$GITHUB_ACTOR@users.noreply.github.com" + git config --global user.email "$GITHUB_ACTOR_ID+$GITHUB_ACTOR@users.noreply.github.com" elif [ "$INPUT_GIT_IDENTITY" = "actions" ]; then git config --global user.email "actions@github.com" git config --global user.name "GitHub Action" @@ -66,7 +66,7 @@ fi PRETTIER_RESULT=0 echo "Prettifying files..." echo "Files:" -prettier $INPUT_PRETTIER_OPTIONS \ +npx prettier $INPUT_PRETTIER_OPTIONS \ || { PRETTIER_RESULT=$?; echo "Problem running prettier with $INPUT_PRETTIER_OPTIONS"; exit 1; } >> $GITHUB_STEP_SUMMARY echo "Prettier result: $PRETTIER_RESULT"