Skip to content

Delete Tag

Actions
Delete the tag that triggered the workflow
v1
Latest
Star (2)

Delete Tag

A GitHub Action that deletes the tag that triggered the workflow.

prompt/actions-delete-tag@v1

Inputs

No inputs.

Outputs

No outputs.

Example

When a new tag is created, assert that the commit has a dist directory and if it does not then delete the tag.

name: "Limit Tags To Distributable Commits"

on:
  push:
    tags:
      - "**"

jobs:
  validate-tag:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v2
      - uses: prompt/actions-assert@v2
        with:
          assertion: npm://@assertions/directory-exists
          expected: dist
      - if: failure()
        name: Delete tag
        uses: prompt/actions-delete-tag@v1

Delete Tag is not certified by GitHub. It is provided by a third-party and is governed by separate terms of service, privacy policy, and support documentation.

About

Delete the tag that triggered the workflow
v1
Latest

Delete Tag is not certified by GitHub. It is provided by a third-party and is governed by separate terms of service, privacy policy, and support documentation.