We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8011591 commit f43a7b2Copy full SHA for f43a7b2
action.yml
@@ -12,4 +12,4 @@ name: 'permafrost-prettier-docker-ga'
12
13
runs:
14
using: 'docker'
15
- image: 'Dockerfile'
+ image: 'docker://permafrostsoftware/prettier-docker-ga'
entrypoint.sh
@@ -6,12 +6,12 @@ CONFIG_OPTION="--config /app/prettier.config.js"
6
7
NEEDS_CONFIG_OPTION=$(echo "$*" | grep "\-\-config" | wc -l)
8
9
-if [ $NEEDS_CONFIG_OPTION -eq 0 ]; then
+if [ $NEEDS_CONFIG_OPTION -gt 0 ]; then
10
CONFIG_OPTION=""
11
fi
-CMD="prettier --write $CONFIG_OPTION $*"
+cd /github/workspace
printf "prettier v"
16
prettier --version
17
-prettier --write $*
+prettier --write --no-error-on-unmatched-pattern $CONFIG_OPTION $*
0 commit comments