Skip to content

Commit

Permalink
Add config panel schema to the schema autopatch
Browse files Browse the repository at this point in the history
  • Loading branch information
OniriCorpe authored Jun 21, 2024
1 parent e38c740 commit 644b9e4
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions tools/autopatches/patches/add-schemas/patch.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

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'
CONFIGPANEL_SCHEMA_LINE='#:schema https://github.com/YunoHost/apps/raw/master/schemas/config_panel.v1.schema.json'


if [ -f "manifest.toml" ]; then
Expand All @@ -16,4 +17,10 @@ if [ -f "tests.toml" ]; then
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

0 comments on commit 644b9e4

Please sign in to comment.