msqu-cicd/Branch Names
Retrieve various information useful for depedent actions
View on GitHubTrust Signals
- Scorecard Score
- not yet scored
- Maintenance Recency
- Stale
- License
- None
Inputs
| name | description | required | default |
|---|---|---|---|
| strip_tag_prefix | The prefix that should be stripped from the tag e.g `v` -> with a tag `v0.0.1` -> returns `0.0.1` | no | "" |
Outputs
| name | description |
|---|---|
| git_is_default | Returns `"true"` if the current branch is the default else `"false"`. |
| git_is_tag | Returns `"true"` if the current branch is a tag else `"false"`. |
| git_default_branch | The default branch name e.g `main` OR `master` |
| git_current_branch | The current branch name regardless of event_type e.g `main`, `feature/test` |
| git_base_ref_branch | The target branch of a pull request or tag e.g `main` |
| git_head_ref_branch | The source branch of a pull request e.g `feature/test` |
| git_ref_branch | The branch that triggered the workflow run. e.g `1/merge`, `main` |
| git_tag | The tag that triggered the workflow run. e.g `v0.0.1`, `0.0.1` |
| ci_hostname | ci server hostname without http(s) prefix |