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 GitHubTrust Signals
- Scorecard Score
- not yet scored
- Maintenance Recency
- Stale
- License
- None
Inputs
| name | description | required | default |
|---|---|---|---|
| repository | Destination repository (default: current repository) | — | "" |
| branch | Destination branch | yes | — |
| host | Destination git host | — | github.com |
| github_token | GitHub Token (use `secrets.GITHUB_TOKEN`) | yes | — |
| github_pat | Personal Access Token or other https credentials | — | "" |
| source_folder | Source folder in workspace to copy (default: workspace root) | — | "" |
| target_folder | Target folder in destination branch to copy to (default: repository root) | — | "" |
| commit_author | User Name <email@address> (default: [github.actor]@users.noreply.github.com) | — | "" |
| commit_message | Commit message (default: [workflow] Publish from [repository]:[branch]/[folder]) | — | "" |
| dry_run | Do not push to repository (set to non-empty string to make dry-run) | — | "" |
| working_directory | Working directory for clone (default: random location in `${HOME}`) | — | "" |
| initial_source_folder | Source folder in workspace to copy if branch didnt exist (default: source_folder value) | — | "" |
| initial_commit_message | Commit message if branch didnt exist | — | Initial commit |
| git_ref | GitHub Reference ${ { github.ref } } | yes | — |
Outputs
| name | description |
|---|---|
| commit_hash | Hash of the new commit |
| working_directory | Working directory of temporary repository |