Skip to content

Commit

Permalink
Run npm run lint only when there's any translator change
Browse files Browse the repository at this point in the history
  • Loading branch information
saschanaz committed Dec 28, 2023
1 parent 713999d commit 7c553ee
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .ci/lint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,6 @@ dir="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
. "$dir/helper.sh"

get_translators_to_check
npm run lint -- "$TRANSLATORS_TO_CHECK"
if [ -n "$TRANSLATORS_TO_CHECK" ]; then
npm run lint -- "$TRANSLATORS_TO_CHECK"
fi

0 comments on commit 7c553ee

Please sign in to comment.