Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/vweevers/additional-tags-action
A GitHub action to create major and minor git tags from the last tag.
https://github.com/vweevers/additional-tags-action
git github-action major-tag minor-tag semver tags
Last synced: 16 days ago
JSON representation
A GitHub action to create major and minor git tags from the last tag.
- Host: GitHub
- URL: https://github.com/vweevers/additional-tags-action
- Owner: vweevers
- License: mit
- Created: 2020-11-01T21:56:38.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2023-10-01T18:48:40.000Z (about 1 year ago)
- Last Synced: 2024-10-17T17:09:01.468Z (21 days ago)
- Topics: git, github-action, major-tag, minor-tag, semver, tags
- Language: JavaScript
- Homepage:
- Size: 6.84 KB
- Stars: 10
- Watchers: 2
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# additional-tags-action
**A [GitHub Action](https://github.com/features/actions) to create major and minor git tags from the last tag.**
![GitHub tag](https://img.shields.io/github/v/tag/vweevers/additional-tags-action?sort=semver)
[![License](https://img.shields.io/github/license/vweevers/additional-tags-action)](LICENSE)## Usage
```yaml
on:
push:
tags:
- v[0-9]+.[0-9]+.[0-9]+
jobs:
release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: vweevers/additional-tags-action@v2
```If your tag is `v2.4.8` (for example) then this action will create 2 additional tags (`v2` and `v2.4`) and push them to GitHub, replacing existing tags. If the tag is a prerelease (not x.x.x) or not prefixed with `v` then nothing happens.
## Why
Useful to release actions. Consumers of your action can now pin to either a:
- Major version (`uses: my-action@v2`)
- Minor version (`uses: [email protected]`)
- Exact version (`uses: [email protected]`)## Inputs
None.
## License
[MIT](LICENSE)