reviewdog / action-ansiblelint

Run ansible-lint with reviewdog 🐕
MIT License
13 stars 7 forks source link

workdir parameter not working ? #30

Closed aloforte closed 10 months ago

aloforte commented 1 year ago

on current master version

I'm attempting to trigger ansible-lint for a project subfolder. But that seems to not change ansible-lint CWD.

I noticed script.sh does:

cd "${GITHUB_WORKSPACE}/${INPUT_WORKING_DIRECTORY}" || exit

defined in action.yml as:

INPUT_WORKING_DIRECTORY: ${{ inputs.working_directory }}

instead of the defined input workdir (at line 30)

Fix should be as simple as changing ${{ inputs.working_directory }} into ${{ inputs.workdir }} at line 59 of action.yml