Skip to content

randlabs/deletetag-action

Repository files navigation

deletetag-action

A GitHub Action to delete tags and/or releases written in TypeScript

License Issues

Usage

    ...
    - name: Deleting mytag tag and release
      id: deltag
      uses: randlabs/[email protected]
      env:
        GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
      with:
        tag: mytag
    ...

Inputs

inputs:
  tag:
    description: 'Tag name'
    required: true
  delete_release:
    description: 'Whether to delete release or not'
    required: false
    default: true
  delete_tag:
    description: 'Whether to delete tag or not (implies delete_release if true)'
    required: false
    default: true
  repo:
    description: 'Target repository in <owner-or-company>/<repository> format'
    required: false

Permissions

This Action requires the following permissions on the GitHub integration token:

permissions:
  contents: write

Environment variables:

GITHUB_TOKEN must be set to the workflow's token or the personal access token (PAT) required to accomplish the task.