Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/joutvhu/delete-artifact
GitHub Action to delete artifacts
https://github.com/joutvhu/delete-artifact
actions artifacts delete github
Last synced: 7 days ago
JSON representation
GitHub Action to delete artifacts
- Host: GitHub
- URL: https://github.com/joutvhu/delete-artifact
- Owner: joutvhu
- Created: 2021-04-01T20:04:44.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2024-10-14T05:10:16.000Z (about 1 month ago)
- Last Synced: 2024-10-19T16:56:02.858Z (27 days ago)
- Topics: actions, artifacts, delete, github
- Language: JavaScript
- Homepage:
- Size: 2.41 MB
- Stars: 8
- Watchers: 2
- Forks: 2
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
# Delete Artifacts
This GitHub Action to delete artifacts from your build. This can be useful when you want to clean up artifacts that are no longer needed.
See also [upload-artifact](https://github.com/actions/upload-artifact).
## Compatibility
> [!IMPORTANT]
> delete-artifact@v2 is not currently supported on GHES yet. If you are on GHES, you must use [v1](https://github.com/joutvhu/delete-artifact/releases/tag/v1).| actions/upload-artifact | joutvhu/delete-artifact |
|-------------------------|-------------------------|
| v1, v2, v3 | v1 |
| v4 | v2 |## Usage
See [action.yml](action.yml)
## Delete a Single Artifact
```yaml
steps:
- uses: joutvhu/delete-artifact@v2
with:
name: my-artifact
```## Delete Multiple Artifacts
Deleting multiple artifacts within a single action can be achieved by specifying each artifact name on a new line, this can improve performance when deleting more than one artifact.
```yaml
steps:
- uses: joutvhu/delete-artifact@v2
with:
name: |
artifact-1
artifact-2
```## Delete All Artifacts
If you don't specify an artifact `name` this Action will be deleted all found artifacts
```yaml
steps:
- uses: joutvhu/delete-artifact@v2
```