Skip to content

Simple action to delete a git tag, and optionally the associated release.

License

Notifications You must be signed in to change notification settings

ClementTsang/delete-tag-and-release

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

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GitHub Action: Delete tag and release

Fork of the original that updates to Node 20.

Note: You may be able to skip using this if you are working on a GitHub-hosted runner, or you can install the gh tool, as gh now natively can delete releases. For example:

      - name: Delete tag
        run: gh release delete $TAG --cleanup-tag
        env:
          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

Add the following step to your workflow:

- uses: ClementTsang/delete-tag-and-release@v0.3.1
  with:
    delete_release: true # default: false
    tag_name: v0.1.0 # tag name to delete
    repo: <owner>/<repoName> # target repo (optional). defaults to repo running this action
  env:
    GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

About

Simple action to delete a git tag, and optionally the associated release.

Topics

Resources

License

Stars

Watchers

Forks

Languages

  • JavaScript 100.0%