Skip to content

Commit

Permalink
Updated action.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
jackton1 committed Mar 18, 2022
1 parent f45a88d commit 10fc407
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ inputs:
rc_path:
description: 'Remark configuration file'
required: false
default: ".remarkrc.json"
args:
description: '[remark cli](https://github.com/unifiedjs/unified-args#cli) options.'
required: true
Expand All @@ -25,10 +24,12 @@ runs:
- run: |
npm install -g remark-cli@10.0.1
npm install -g $INPUT_PLUGINS
RC_PATH=${INPUT_RC_PATH:-"${{ github.action_path }}/.remarkrc.json"}
for path in $INPUT_FILES
do
npx remark "$path" --rc-path="${INPUT_RC_PATH}" ${INPUT_ARGS}
npx remark "$path" --rc-path="${RC_PATH}" ${INPUT_ARGS}
done
id: remark
shell: bash
Expand Down

0 comments on commit 10fc407

Please sign in to comment.