diff --git a/action.yml b/action.yml index a76239a..e0c2126 100644 --- a/action.yml +++ b/action.yml @@ -23,11 +23,16 @@ runs: using: 'composite' steps: - run: | - bash $GITHUB_ACTION_PATH/entrypoint.sh + npm install -g remark-cli@10.0.1 + npm install -g $INPUT_PLUGINS + + for path in $INPUT_FILES + do + npx remark "$path" --rc-path="${INPUT_RC_PATH}" ${INPUT_ARGS} + done id: remark shell: bash env: - GITHUB_ACTION_PATH: ${{ github.action_path }} # INPUT_ is not available in Composite run steps # https://github.community/t/input-variable-name-is-not-available-in-composite-run-steps/127611 INPUT_RC_PATH: ${{ inputs.rc_path }} diff --git a/entrypoint.sh b/entrypoint.sh deleted file mode 100755 index aaf5d15..0000000 --- a/entrypoint.sh +++ /dev/null @@ -1,14 +0,0 @@ -#!/usr/bin/env bash - -set -e - -npm install -g remark-cli@10.0.1 - -# shellcheck disable=SC2086 -npm install -g $INPUT_PLUGINS - -for path in ${INPUT_FILES} -do - # shellcheck disable=SC2086 - npx remark "$path" --rc-path="${INPUT_RC_PATH}" ${INPUT_ARGS} -done