Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/prompt/actions-delete-tag
:scissors: Delete the tag that triggered the workflow
https://github.com/prompt/actions-delete-tag
actions git github-actions
Last synced: 23 days ago
JSON representation
:scissors: Delete the tag that triggered the workflow
- Host: GitHub
- URL: https://github.com/prompt/actions-delete-tag
- Owner: prompt
- License: mit
- Created: 2021-06-13T22:38:17.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2023-08-11T19:06:03.000Z (over 1 year ago)
- Last Synced: 2024-12-12T20:29:59.011Z (28 days ago)
- Topics: actions, git, github-actions
- Homepage:
- Size: 3.91 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 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.```yaml
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
```