1
0
Fork 0

Add config panel schema to the schema autopatch (#2427)

This commit is contained in:
OniriCorpe 2024-06-21 12:11:40 +02:00 committed by GitHub
parent 133ed9811a
commit 709a9acbda

View file

@ -2,6 +2,7 @@
MANIFEST_SCHEMA_LINE='#:schema https://raw.githubusercontent.com/YunoHost/apps/master/schemas/manifest.v2.schema.json' MANIFEST_SCHEMA_LINE='#:schema https://raw.githubusercontent.com/YunoHost/apps/master/schemas/manifest.v2.schema.json'
TESTS_SCHEMA_LINE='#:schema https://raw.githubusercontent.com/YunoHost/apps/master/schemas/tests.v1.schema.json' TESTS_SCHEMA_LINE='#:schema https://raw.githubusercontent.com/YunoHost/apps/master/schemas/tests.v1.schema.json'
CONFIGPANEL_SCHEMA_LINE='#:schema https://github.com/YunoHost/apps/raw/master/schemas/config_panel.v1.schema.json'
if [ -f "manifest.toml" ]; then if [ -f "manifest.toml" ]; then
@ -16,4 +17,10 @@ if [ -f "tests.toml" ]; then
fi fi
fi fi
if [ -f "config_panel.toml" ]; then
if ! grep "#:schema" "config_panel.toml" >/dev/null; then
sed -i "1 s|^|$CONFIGPANEL_SCHEMA_LINE\n|" tests.toml
fi
fi
git add manifest.toml tests.toml git add manifest.toml tests.toml