Skip to content

Commit f43a7b2

Browse files
committed
wip
1 parent 8011591 commit f43a7b2

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,4 @@ name: 'permafrost-prettier-docker-ga'
1212

1313
runs:
1414
using: 'docker'
15-
image: 'Dockerfile'
15+
image: 'docker://permafrostsoftware/prettier-docker-ga'

entrypoint.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,12 @@ CONFIG_OPTION="--config /app/prettier.config.js"
66

77
NEEDS_CONFIG_OPTION=$(echo "$*" | grep "\-\-config" | wc -l)
88

9-
if [ $NEEDS_CONFIG_OPTION -eq 0 ]; then
9+
if [ $NEEDS_CONFIG_OPTION -gt 0 ]; then
1010
CONFIG_OPTION=""
1111
fi
1212

13-
CMD="prettier --write $CONFIG_OPTION $*"
13+
cd /github/workspace
1414

1515
printf "prettier v"
1616
prettier --version
17-
prettier --write $*
17+
prettier --write --no-error-on-unmatched-pattern $CONFIG_OPTION $*

0 commit comments

Comments
 (0)