https://github.com/jacobsvante/tag-major-minor-action
GitHub action for create git tags for the specified major and minor version identifiers
https://github.com/jacobsvante/tag-major-minor-action
Last synced: 3 months ago
JSON representation
GitHub action for create git tags for the specified major and minor version identifiers
- Host: GitHub
- URL: https://github.com/jacobsvante/tag-major-minor-action
- Owner: jacobsvante
- License: mit
- Created: 2022-01-05T09:23:34.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2022-01-05T11:00:34.000Z (over 4 years ago)
- Last Synced: 2025-03-19T21:06:41.069Z (about 1 year ago)
- Size: 11.7 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
GitHub action for create git tags for the specified major and minor version identifiers
Example, used together with the excellent [release-please-action](https://github.com/google-github-actions/release-please-action):
```yml
on:
push:
branches:
- main
name: Main
jobs:
release-please:
runs-on: ubuntu-latest
steps:
- uses: google-github-actions/release-please-action@v3
id: release
with:
release-type: simple
package-name: my-package
bump-minor-pre-major: true
- uses: actions/checkout@v2
- name: Tag major and minor versions
uses: jacobsvante/tag-major-minor-action
if: ${{ steps.release.outputs.release_created }}
with:
major: ${{ steps.release.outputs.major }}
minor: ${{ steps.release.outputs.minor }}
```