From 0fcdf60d1a9c51ee7691f0b561f39ad2261bf327 Mon Sep 17 00:00:00 2001 From: lapineige Date: Sat, 9 Mar 2024 21:13:14 +0100 Subject: [PATCH] add autoupdate options --- tools/app_generator/templates/manifest.j2 | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/tools/app_generator/templates/manifest.j2 b/tools/app_generator/templates/manifest.j2 index bfaec98..dec105f 100644 --- a/tools/app_generator/templates/manifest.j2 +++ b/tools/app_generator/templates/manifest.j2 @@ -105,10 +105,13 @@ ram.runtime = "50M" # assuming the upstream's code repo is on github and relies on tags or releases # See the 'sources' resource documentation for more details - {% if data.auto_update -%} - autoupdate.strategy = "latest_github_tag" + {% if data.auto_update != "none" -%} + autoupdate.strategy = "{{ data.auto_update }}" {% else -%} - # autoupdate.strategy = "latest_github_tag" + {% if data.generator_mode == "tutorial" -%} + # You might want to add an "autoupdate strategy" setting to that your app receive automated pull request with each new update, which also trigger automated testing. + # autoupdate.strategy = "" + {%- endif -%} {% endif %} {% if data.system_user -%}