Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/prompt/actions-semver-aliases
:octocat: Generate major and minor Semantic Version aliases from a Semantic Version
https://github.com/prompt/actions-semver-aliases
actions github-actions semantic-version semver
Last synced: about 2 months ago
JSON representation
:octocat: Generate major and minor Semantic Version aliases from a Semantic Version
- Host: GitHub
- URL: https://github.com/prompt/actions-semver-aliases
- Owner: prompt
- License: mit
- Created: 2021-05-03T12:34:32.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2023-10-03T19:44:41.000Z (over 1 year ago)
- Last Synced: 2024-12-12T20:29:59.713Z (about 2 months ago)
- Topics: actions, github-actions, semantic-version, semver
- Language: TypeScript
- Homepage:
- Size: 303 KB
- Stars: 3
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# SemVer Aliases
A GitHub Action for generating the major and minor aliases of a
[Semantic Version][semver]: generate `v3` and `v3.14` from `v3.14.1`.```
prompt/actions-semver-aliases@v2
```## Inputs
| ID | Description | Default | Examples |
| ---- | ----------- | ------- | -------- |
| **`version`** | **Semantic Version number** | **required** | **`v1.2.3` `1.2.3`** |
| `prefix` | String prefixed before each alias | `v` | `v` `app-` |
| `major` | Generate major version alias | `true` | |
| `minor` | Generate minor version alias | `true` | |
| `patch` | Generate patch version alias | `false` | |## Outputs
| ID | Description | Example |
| ---- | --------- | -------- |
| `list` | Newline separated string of aliases | `v1`
`v1.2` |
| `csv` | Comma-separated string of aliases | `v1,v1.2` |[semver]: https://semver.org/