Skip to content

Commit

Permalink
Fixed config path check (#56)
Browse files Browse the repository at this point in the history
  • Loading branch information
sinhashubham95 authored Nov 9, 2022
1 parent 86b53ce commit cb33fa8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ echo "::add-matcher::matcher.json"

# Custom path for yamllint configuration input
if [[ -n "${INPUT_CONFIG}" ]]; then
if [[ -f "${INPUT_CONFIG}" ]]; then
if [[ ! -f "${INPUT_CONFIG}" ]]; then
echo "::error ::Custom yamllint configuration file not found: ${INPUT_CONFIG}"
exit 1
fi
Expand Down

0 comments on commit cb33fa8

Please sign in to comment.