Skip to content

Commit cfd94bb

Browse files
committed
Script: make running hassfest-check conditionally
1 parent 4c339b0 commit cfd94bb

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

scripts/core-testing.sh

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -244,8 +244,12 @@ if [ -z "${GITHUB_ACTIONS}" ]; then
244244
# shellcheck disable=SC2090
245245
sed -i".sedbck" 's/http.*test-files.pythonhosted.*#//g' ./homeassistant/components/plugwise_usb/manifest.json
246246
)
247-
echo "Running hassfest for plugwise_usb"
248-
python3 -m script.hassfest --requirements --action validate
247+
248+
# Hassfest already runs on Github
249+
if [ -n "${GITHUB_ACTIONS}" ] ; then
250+
echo -e "${CINFO}Running hassfest for plugwise${CNORM}"
251+
python3 -m script.hassfest --requirements --action validate
252+
fi
249253
fi
250254

251255
# pylint was removed from 'quality' some time ago

0 commit comments

Comments
 (0)