diff --git a/action.yml b/action.yml index 988fdf6..b23b101 100644 --- a/action.yml +++ b/action.yml @@ -46,6 +46,16 @@ runs: - name: Prettify code! shell: bash run: ${{ github.action_path }}/entrypoint.sh + env: + INPUT_COMMIT_MESSAGE: ${{ inputs.commit_message }} + INPUT_SAME_COMMIT: ${{ inputs.same_commit }} + INPUT_COMMIT_OPTIONS: ${{ inputs.commit_options }} + INPUT_FILE_PATTERN: ${{ inputs.file_pattern }} + INPUT_PRETTIER_OPTIONS: ${{ inputs.prettier_options }} + INPUT_DRY: ${{ inputs.dry }} + INPUT_PRETTIER_VERSION: ${{ inputs.prettier_version }} + INPUT_ONLY_CHANGED: ${{ inputs.only_changed }} + INPUT_PRETTIER_PLUGINS: ${{ inputs.prettier_plugins }} branding: icon: "award" diff --git a/entrypoint.sh b/entrypoint.sh index 1b6ef8c..f5dcad8 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -27,8 +27,6 @@ _git_changed() { ( -echo ${{ inputs.prettier_options }} - # PROGRAM echo "Installing prettier..." case $INPUT_PRETTIER_VERSION in