A GitHub Action to delete tags and/or releases written in TypeScript
...
- name: Deleting mytag tag and release
id: deltag
uses: randlabs/deletetag-action@v1.0.0
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag: mytag
...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: falseThis Action requires the following permissions on the GitHub integration token:
permissions:
contents: writeGITHUB_TOKEN must be set to the workflow's token or the personal access token (PAT) required to accomplish the task.