Skip to content
You're viewing an older version of this GitHub Action. Do you want to see the latest version instead?
refresh-cw

GitHub Action

Update major/minor semver

v1.0.0

Update major/minor semver

refresh-cw

Update major/minor semver

Updates major/minor release tags on a tag push

Installation

Copy and paste the following snippet into your .yml file.

              

- name: Update major/minor semver

uses: haya14busa/action-update-semver@v1.0.0

Learn more about this action in haya14busa/action-update-semver

Choose a version

GitHub Action: Update major/minor semver

Docker Image CI Release

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

github_token

Required. Must be in form of github_token: ${{ secrets.github_token }}'.

Example usage

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 }}