Skip to content

bakoontz2/action-create-tag

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

36 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GitHub Action: Create/update tag

Docker Image CI Code quality CI release GitHub release (latest SemVer)

Simple GitHub action that can be used to create/update a tag and push it to the remote.

Inputs

tag

Required. Tag you want to create.

message

Optional. Tag message. Default: Release $TAG.

force_push_tag

Optional. Push tag even if it already exists on the remote. Default: false. Please use with care!

commit_sha

Optional. The commit SHA hash on which you want to push the tag. Uses latest commit by default.

github_token

Optional. It's no need to specify it if you use checkout@v2. Required for checkout@v1 action.

Example usage

name: Create/update tag
on:
  push:
    branch: "main"
jobs:
  create-tag:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v2
      - uses: rickstaa/action-create-tag@v1
        with:
          tag: "latest"
          message: "Latest release"

About

Simple GitHub action that can be used to create a tag inside a GitHub action.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Shell 88.5%
  • Dockerfile 11.5%