clovis1444/Get version
Get project version from a file
View on GitHubTrust Signals
- Scorecard Score
- not yet scored
- Maintenance Recency
- Stale
- License
- None
Inputs
| name | description | required | default |
|---|---|---|---|
| file_to_read | File that contains project version. | yes | — |
| line_pattern | RegEx pattern to a line, that contains a project version. | yes | — |
| version_pattern | RegEx pattern to a version. Default value is "[0-9]\+\.[0-9]\+\.[0-9]\+". | — | [0-9]\+\.[0-9]\+\.[0-9]\+ |
| custom_command | Execute your own command to determine project version. When using this the following inputs are ignored: file_to_read, line_pattern, version_pattern. | — | "" |
| repo | Repository name with owner. Default value is the current repository. | — | ${{ github.repository }} |
| checkout | Whether or not to checkout the file. Default value is false. | — | false |
| tag_prefix | Tag prefix to search for existing tags. Default value is 'v'. | — | v |
| tag_postfix | Tag postfix to search for existing tags. Default value is ''. | — | "" |
Outputs
| name | description |
|---|---|
| project_version | Project version. |
| exists | Returns true if tag with the current version already exists. |