broadshield/🏷️ Generate Tag Name from Maven or Gradle
Generates a Git tag name for Pull Releases and Branches based on the application version in pom.xml or gradle.settings files
View on GitHubTrust Signals
- Scorecard Score
- not yet scored
- Maintenance Recency
- Stalelast commit May 2, 2022
- License
- MIT
- Runtime
- Deprecated runtime
Pinned Snippet
uses: broadshield/github-action-generate-tag-name-from-maven-or-gradle@c32893402db7e4343afa251e47542db3488be44b # v1.0.0tags can be moved; commit SHAs can't. why a SHA?
Inputs
| name | description | required | default |
|---|---|---|---|
| github_token | The Github Token to authenticate with | no | — |
| default_version | The default tag to use if no tags exist | no | "" |
| filepath | The path to the pom.xml or build.gradle file | yes | ./pom.xml |
| pr_number | PR number to search for | no | — |
| branch | branch to search for | no | — |
| tag_prefix | Tag prefix used to search for the current version name to iterate | no | — |
| releases_only | Search GitHub releases instead of Github Tags | no | true |
| sort_tags | Sort the tags in version order | no | true |
| bump | The version part to bump, can be major, minor, patch | no | patch |
| release_branch | The release branch to bump | yes | — |
| repository | A named repository in the format Owner\repositoryName | no | — |
| prepend_v | Prepend a v to tags. i.e. v1.0.0 | no | true |
| ignore_v_when_searching | Searches for tags that have a 'v' at the start and without | no | true |
| build_delimiter | The delimiter character to use to separate the version from the build number | no | + |
| label_delimiter | The delimiter character to use to separate the version from the label | no | - |
Outputs
| name | description |
|---|---|
| tag_name | The generated tag with the bump |
| app_version | The App version found |
| search_prefix | The search prefix used |