Skip to content

Enhancement: CreateCourses #26

@denise-khuu

Description

@denise-khuu

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions