Files
default/scripts/check/images.py
T
Joakim Sørensen 001a81b77f New Github actions (#481)
* Test new check

* Add quote

* test

* test

* move check

* move back

* use env

* test multistep

* test trigger

* if: github.event.label.name

* quotes

* hassfest?

* Fix clone

* Update hassfest

* check hassfest

* Use real domain

* Lmit

* Test hassfest

* Check domain

* Fix domain

* No changes

* Enable on unlable

* Change HACS validate

* Move inputs

* Add dummy integration

* TEst

* Move to env

* Fix repo

* Remove entry
2020-05-26 17:53:04 +02:00

21 lines
453 B
Python

from scripts.changed.category import get_category
from scripts.helpers.info import get_info
def check():
if get_category() not in ["plugin", "theme"]:
print("Only plugin and theme are checked.")
return
info = get_info()
if "<img" in info or "![" in info:
print("Has image(s)")
return
print("There should be images to show the user what they get.")
exit(1)
if __name__ == "__main__":
check()