ynput / ops-repo-automation

Collection of automation tools and github-workflows for Ayon related repositories.
0 stars 0 forks source link

Potential workflow to automate repo creation #9

Open philnewm opened 4 weeks ago

philnewm commented 4 weeks ago

Is there an existing issue for this?

Please describe the feature you have in mind and explain what the current shortcomings are?

When creating a repo from the ayon-addon-template repo the files and labels are carried over in the first place. Missing are any kind of variables, secrets or branches.

Using the option to also recreate the branches like develop and main will create both of them. But this will create the Branches with unrelated histories so merging becomes impossible. This is intended according to Github Documentation

So it would make sense to use the template as a baseline and have a workflow which creates all other aspects like branches, variables and secrets automatically. Using a manual trigger.

How would you imagine the implementation of the feature?

This can be achieved using the gh command line tool for github. With just a bunch of simple comamnds a variables fwtching a workflow like can be implemented.

The gh tool is preinstalled in any github runner.

Are there any labels you wish to add?

Describe alternatives you've considered:

No response

Additional context:

No response

philnewm commented 2 hours ago

Due to the already implemented reset-repo-workflow this is already 70% done and will most likely just need some fine-tuning.