Skip to content

julbme/gh-action-manage-tag

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Build Lint Commit Messages Quality Gate Status GitHub release (latest SemVer)

GitHub Action to manage tags

The GitHub Action for managing tags of the GitHub repository.

  • Create a new tag
  • Move the tag to another commit
  • Delete a tag

Usage

Example Workflow file

  • Create a tag:
jobs:
  build:
    runs-on: ubuntu-latest
    steps:
      - name: Create/Update the tag
        uses: julbme/gh-action-manage-tag@v1
        with:
          name: tag-name
          state: present
          from: ${{ github.ref }}
        env:
          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
  • Delete a tag
jobs:
  build:
    runs-on: ubuntu-latest
    steps:
      - name: Delete the tag
        uses: julbme/gh-action-manage-tag@v1
        with:
          name: tag-name
          state: absent
        env:
          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

Inputs

Name Type Default Description
name string Not set Name of the tag. Required
state string present Expected state of the tag. Valid values are present to create the tag or absent to delete the tag
from string github.sha The reference from which to create or update the tag - could be a branch, a tag, a ref or a specific SHA. By default, it takes the commit that triggered the workflow.

Outputs

Name Type Description
ref string Git ref of the tag refs/tags/name, or in case the tag is deleted.
name string Name of the tag, or in case the tag is deleted.
sha sha SHA Commit of the tag, or in case the tag is deleted.

Contributing

This project is totally open source and contributors are welcome.