From b185d84b38c0c568cc18172d60da40e31e1fb0df Mon Sep 17 00:00:00 2001 From: Conrad Date: Thu, 8 May 2025 13:32:56 +0200 Subject: [PATCH 1/4] fix: bumped version in readme --- README.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 0aa63a4..8fee7de 100644 --- a/README.md +++ b/README.md @@ -60,7 +60,7 @@ jobs: uses: actions/checkout@v4 - name: Prettify code - uses: creyD/prettier_action@v4.4 + uses: creyD/prettier_action@v4.5 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.4 + uses: creyD/prettier_action@v4.5 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.4 + uses: creyD/prettier_action@v4.5 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.4 + uses: creyD/prettier_action@v4.5 with: dry: True github_token: ${{ secrets.PERSONAL_GITHUB_TOKEN }} From af8ff244c55351ef03af13809ae111475dc7578d Mon Sep 17 00:00:00 2001 From: Conrad Date: Fri, 9 May 2025 14:39:25 +0200 Subject: [PATCH 2/4] fix: #144 Moved to ID based noreply pattern --- entrypoint.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/entrypoint.sh b/entrypoint.sh index 7c8f4bf..00e1efd 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" From 6a7b2d092fb71cc879c89c0f95a2d3c00f08b3f8 Mon Sep 17 00:00:00 2001 From: Derek Ditch Date: Mon, 9 Jun 2025 16:43:18 -0500 Subject: [PATCH 3/4] Use npx to execute prettier (#145) * fix: bumped version in readme * Use npx to execute prettier Fixes: https://github.com/creyD/prettier_action/issues/113 --------- Co-authored-by: Conrad --- entrypoint.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/entrypoint.sh b/entrypoint.sh index 00e1efd..ec9b329 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -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" From afbe64738bfb776a123169ce2ac029092e9dbc09 Mon Sep 17 00:00:00 2001 From: Conrad Date: Mon, 9 Jun 2025 23:45:59 +0200 Subject: [PATCH 4/4] Update README.md --- README.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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 }}