From 607cfd54f30adf6db7e9e588c13fd4ea133a6092 Mon Sep 17 00:00:00 2001 From: Tonye Jack Date: Fri, 18 Mar 2022 05:22:56 -0400 Subject: [PATCH] Updated action --- action.yml | 9 +++++++-- entrypoint.sh | 14 -------------- 2 files changed, 7 insertions(+), 16 deletions(-) delete mode 100755 entrypoint.sh 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