Manual updating intended after project creation with a custom template? #1855
Unanswered
OleWunschmann
asked this question in
Q&A
Replies: 2 comments 1 reply
-
|
@aholstrup1 my colleague extended the description to hopefully clarify what we mean :) |
Beta Was this translation helpful? Give feedback.
0 replies
-
|
As discussed off-GitHub, the actual solution for your problem is to separate the code-changing logic from the submitting the changes to GitHub logic. If adding |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Short description:
If a custom template contains scripts (e.g. overrides for Run-AlPipeline) they are not part of a new project (after the first).
This results in the requirement to manually dispatch the update workflow after a new project was created.
Longer description with an example to hopefully make the scenario easier to understand:
Custom template repository that contains:
.AL-Go/settings.json(e.g. country "w1" instead of "us").AL-Goas overrides for the function "Run-AlPipeline" of the "bccontainerhelper" (e.g.PipelineInitialize.ps1)Create repository from repository AL-Go-PTE
Run workflow "Update AL-Go System Files" with template url "https://github.com/microsoft/AL-GO-PTE@preview"
Run workflow "Update AL-Go System Files" with template url of the custom template
.AL-Go/settings.jsoncontains settings of AL-Go-PTE which override the custom settings of file.github/AL-Go-TemplateProjectSettings.doNotEdit.jsonon actionReadSettings(e.g. country).AL-Gocontains the powershell scripts of the custom templateRun workflow "Create a new app" with a new project "p1"
.AL-Gomoved to directory of new projectp1/.AL-Goincluding filesettings.jsonand powershell scriptsRun workflow "Create a new app" with a new project "p2"
p2/.AL-Goonly contains a default version of the filesettings.jsonRun workflow "Update AL-Go System Files" with template url of the custom template (same sha)
p2/.AL-Go/settings.jsonstill only contains default settings which override the custom settings of file.github/AL-Go-TemplateProjectSettings.doNotEdit.jsonon actionReadSettings(e.g. country)p2/.AL-Gonow contains the powershell scripts of the custom templateThis results in the follwing questions:
Is the requirement for a manual dispatch of workflow "Update AL-Go System Files" intended after the creation of a new project?
Extra question: Is the override of the custom template project settings intended?
Beta Was this translation helpful? Give feedback.
All reactions