qld-gov-au/cdn-version-tree-by-tag-builder

Publish files to a git repository from a tag in semantic tree structure i.e. tag v1.10.19 is submitted 1. split on first dot (this is major) 2. create folder using first part {major} 3. create folder '{major}.x.x-latest' inside said {major} folder and copy files (or delete and re-create) 4. split on second dot (this is minor) 6. inside {major folder} create folder '{minor}.x-latest' and copy files (or delete and re-create) 7. inside {major folder} create folder of exact tag nam'{tag} and copy files (or delete and re-create) Structure would be: v1 |- v1.x.x-latest |- v1.10.x-latest |- v1.10.19 And it should build a tree like so |- v1 |- |- v1.x.x-latest |- |- v1.10.x-latest |- |- v1.10.19 |- |- v1.10.20 |- |- v1.11.x-latest |- |- v1.11.1 |- |- v1.11.2 |- v2 |- |- v2.x.x-latest |- |- v2.0.x-latest |- |- v2.0.0 |- |- v2.0.1 |- |- v2.0.2

View on GitHub

Trust Signals

Scorecard Score
not yet scored
Maintenance Recency
Stale
License
None
namedescriptionrequireddefault
repositoryDestination repository (default: current repository)""
branchDestination branchyes
hostDestination git hostgithub.com
github_tokenGitHub Token (use `secrets.GITHUB_TOKEN`)yes
github_patPersonal Access Token or other https credentials""
source_folderSource folder in workspace to copy (default: workspace root)""
target_folderTarget folder in destination branch to copy to (default: repository root)""
commit_authorUser Name <email@address> (default: [github.actor]@users.noreply.github.com)""
commit_messageCommit message (default: [workflow] Publish from [repository]:[branch]/[folder])""
dry_runDo not push to repository (set to non-empty string to make dry-run)""
working_directoryWorking directory for clone (default: random location in `${HOME}`)""
initial_source_folderSource folder in workspace to copy if branch didnt exist (default: source_folder value)""
initial_commit_messageCommit message if branch didnt existInitial commit
git_refGitHub Reference ${ { github.ref } }yes
namedescription
commit_hashHash of the new commit
working_directoryWorking directory of temporary repository