Skip to content

Commit

Permalink
Update Prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
Anu48 committed Apr 23, 2024
1 parent 9c0188e commit 80a727f
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions prettier/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -215,13 +215,6 @@ if ! _git_changed; then
exit
fi

# case when --write is used with dry-run so if something is unpretty there will always have _git_changed
if _dry_run; then
summarize_changes 'Unpretty Files Changes'
echo "Finishing dry-run. Exiting before committing." | tee -a "$GITHUB_STEP_SUMMARY"
exit 1
fi

# Calling method to configure the git environment
_git_setup

Expand Down Expand Up @@ -258,6 +251,14 @@ else
else
git commit -n -m "$INPUT_COMMIT_MESSAGE" ${INPUT_COMMIT_OPTIONS:+"$INPUT_COMMIT_OPTIONS"} || commit_canary=
fi

# case when --write is used with dry-run so if something is unpretty there will always have _git_changed
if _dry_run; then
summarize_changes 'Unpretty Files Changes'
echo "Finishing dry-run. Exiting before committing." | tee -a "$GITHUB_STEP_SUMMARY"
exit 1
fi

if [ -n "$commit_canary" ]; then
log_blame_rev "Prettier"
else
Expand Down

0 comments on commit 80a727f

Please sign in to comment.