Go to file
Mathieu Dutour 685597cc4e prod deps 2019-11-28 11:59:30 +01:00
.github/workflows first commit 🎉 2019-10-31 10:36:53 -07:00
docs update instructions 2019-10-31 10:55:01 -07:00
lib prod deps 2019-11-28 11:59:30 +01:00
node_modules prod deps 2019-11-28 11:59:30 +01:00
src add previous_tag output 2019-11-28 11:58:17 +01:00
.gitignore prod deps 2019-11-28 11:59:30 +01:00
LICENSE first commit 🎉 2019-10-31 10:36:53 -07:00
README.md add previous_tag output 2019-11-28 11:58:17 +01:00
action.yml add previous_tag output 2019-11-28 11:58:17 +01:00
jest.config.js first commit 🎉 2019-10-31 10:36:53 -07:00
package-lock.json add previous_tag output 2019-11-28 11:58:17 +01:00
package.json add previous_tag output 2019-11-28 11:58:17 +01:00
tsconfig.json first commit 🎉 2019-10-31 10:36:53 -07:00

README.md

GitHub Tag Action

A Github Action to automatically bump and tag master, on merge, with the latest SemVer formatted version. Works on any platform.

Usage

name: Bump version
on:
  push:
    branches:
      - master
jobs:
  build:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@master
      - name: Bump version and push tag
        uses: mathieudutour/github-tag-action@v1
        with:
          github_token: ${{ secrets.GITHUB_TOKEN }}

Inputs

  • github_token (required) - Required for permission to tag the repo. Usually ${{ secrets.GITHUB_TOKEN }}.
  • default_bump (optional) - Which type of bump to use when none explicitly provided (default: minor).
  • tag_prefix (optional) - A prefix to the tag name (default: v).
  • release_branches (optional) - Comma separated list of branches (bash reg exp accepted) that will generate the release tags. Other branches and pull-requests generate versions postfixed with the commit hash and do not generate any tag. Examples: master or .* or release.*,hotfix.*,master ...

Outputs

  • new_tag - The value of the newly created tag. Note that if there hasn't been any new commit, this will be undefined.
  • previous_tag - The value of the previous tag (or 0.0.0 if none).

Note: This action creates a lightweight tag.

Credits

anothrNick/github-tag-action - a similar action using a Dockerfile