Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

prompt/actions-delete-tag

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

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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

About

✂️ Delete the tag that triggered the workflow

Topics

Resources

Stars

Watchers

Forks

Releases

Used by

Contributors

Morty Proxy This is a proxified and sanitized view of the page, visit original site.