-
Notifications
You must be signed in to change notification settings - Fork 11
Description
In tutorials repository
https://github.com/devonfw-tutorials/tutorials/blob/main/.github/workflows/buildMain.yml
save the new files and changed files and into variables and pass them to the buildMain.yml of the katacoda-scenarios repository.
Pass the variables as arguments to the publish.js.
In publish.js only update the courses that are either new, changed or have a scenario that was changed.
In cleanUp() only delete the course-folders that were changed.
Keep in mind, that for now it will generate all tutorials with the tutorial-compiler.
With those changes you have to check in the createCourses function if that needed tutorial exists in the newly-generated-tutorials folder, otherwise you have to find it inside one of the katacoda-scenario folder or generate it, too.
On how to get the changed files and directories, you can use line 17-18 of
https://github.com/devonfw-tutorials/tutorials/blob/main/.github/workflows/buildPullRequest.yml
as an example.