thomasglachant / increment

Action to increment a repository variable.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Increment Variable

Build Version Size

Action to increment a repository variable by one. Useful for increasing a version number for example.

It also supports alphanumeric variabeles, for example ABC1 will be increased to ABC2.

If the target variabele does not exist, it will be automaticly created with a value of 1.

Usage

uses: action-pack/increment@v2
with:
  name: 'MY_VARIABLE'
  token: ${{ secrets.REPO_ACCESS_TOKEN }}

Inputs

name

Required String Variable name.

token

Required String Repository Access token

owner

Optional String Owners name.

repository

Optional String Repository name.

org

Optional Boolean Indicates the repo is an organization.

About

Action to increment a repository variable.

License:MIT License


Languages

Language:JavaScript 100.0%