Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/haya14busa/action-update-semver
Updates major/minor release tags on a tag push
https://github.com/haya14busa/action-update-semver
Last synced: 19 days ago
JSON representation
Updates major/minor release tags on a tag push
- Host: GitHub
- URL: https://github.com/haya14busa/action-update-semver
- Owner: haya14busa
- License: mit
- Created: 2019-12-02T08:52:46.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2023-03-07T00:10:08.000Z (over 1 year ago)
- Last Synced: 2024-10-03T12:16:47.917Z (about 2 months ago)
- Language: Shell
- Homepage: https://github.com/marketplace/actions/update-major-minor-semver
- Size: 31.3 KB
- Stars: 49
- Watchers: 5
- Forks: 11
- Open Issues: 6
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# GitHub Action: Update major/minor semver
[![Docker Image CI](https://github.com/haya14busa/action-update-semver/workflows/Docker%20Image%20CI/badge.svg)](https://github.com/haya14busa/action-update-semver/actions)
[![reviewdog](https://github.com/haya14busa/action-update-semver/workflows/reviewdog/badge.svg)](https://github.com/haya14busa/action-update-semver/actions?query=workflow%3Areviewdog)
[![release](https://github.com/haya14busa/action-update-semver/workflows/release/badge.svg)](https://github.com/haya14busa/action-update-semver/actions?query=workflow%3Arelease)
[![GitHub release (latest SemVer)](https://img.shields.io/github/v/release/haya14busa/action-update-semver?logo=github&sort=semver)](https://github.com/haya14busa/action-update-semver/releases)This action updates major/minor release tags on a tag push.
e.g. Update `v1` and `v1.2` tag when released `v1.2.3`.It works well for GitHub Action. ref: https://help.github.com/en/articles/about-actions#versioning-your-action
## Inputs
### `tag`
**Optional**. Existing tag to update from. Default comes from `$GITHUB_REF`.
### `message`
**Optional**. Tag message. Default: `Release $TAG`
### `major_version_tag_only`
**Optional**. Create only major version tags. Default: `false`
### `github_token`
**Optional**. It's no need to specify it if you use checkout@v2. Required for
checkout@v1 action.## Example usage
### [.github/workflows/update_semver.yml](.github/workflows/update_semver.yml)
```yml
name: Update Semver
on:
push:
branches-ignore:
- '**'
tags:
- 'v*.*.*'
jobs:
update-semver:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: haya14busa/action-update-semver@v1
with:
major_version_tag_only: true # (optional, default is "false")
```oneliner
```
$ cat < .github/workflows/update_semver.yml
name: Update Semver
on:
push:
branches-ignore:
- '**'
tags:
- 'v*.*.*'
jobs:
update-semver:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: haya14busa/action-update-semver@v1
with:
github_token: \${{ secrets.github_token }}
EOF
```