Skip to content

Commit

Permalink
docs: update docs for v5
Browse files Browse the repository at this point in the history
  • Loading branch information
GeekyEggo committed Mar 18, 2024
1 parent ff19d56 commit 24928e7
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 8 deletions.
6 changes: 5 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,14 @@

# Change Log

## v5.0

- Switch to [@actions/artifact](https://www.npmjs.com/package/@actions/artifact), removing the need for a `token` parameter (Sebastian Weigand) [#24](https://github.com/GeekyEggo/delete-artifact/pull/24)

## v4.1

- Add default token.
- Fix over-arching `catch` output; errors now correctly result in a failed run ([@TheMrMilchmann ](https://github.com/TheMrMilchmann)).
- Fix over-arching `catch` output; errors now correctly result in a failed run (Leon Linhart) [#18](https://github.com/GeekyEggo/delete-artifact/pull/18)

## v4.0

Expand Down
14 changes: 7 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,15 @@ A GitHub Action for deleting artifacts within the workflow run. This can be usef
| `actions/upload-artifact` | `geekyeggo/delete-artifact` |
| ------------------------- | --------------------------- |
| `@v1`, `@v2`, `@v3` | `@v1`, `@v2` |
| `@v4` | `@v4` |
| `@v4` | ~~@v4~~, `@v5` |

> [!NOTE]
> `geekyeggo/delete-artifact@v4` has been deprecated in favour of `geekyeggo/delete-artifact@v5` which removes the requirement of the `token` parameter.
## ⚡ Usage

See [action.yml](action.yml)

> [!IMPORTANT]
> Support for `actions/upload-artifact@v4` utilizes the GitHub REST API, and requires a permissive [`GITHUB_TOKEN`](https://docs.github.com/en/actions/security-guides/automatic-token-authentication#permissions-for-the-github_token), or a PAT with read and write access to `actions`.
### Delete an individual artifact

```yml
Expand All @@ -34,7 +34,7 @@ steps:
name: my-artifact
path: test.txt

- uses: geekyeggo/delete-artifact@v4
- uses: geekyeggo/delete-artifact@v5
with:
name: my-artifact
```
Expand All @@ -43,7 +43,7 @@ steps:
```yml
steps:
- uses: geekyeggo/delete-artifact@v4
- uses: geekyeggo/delete-artifact@v5
with:
name: |
artifact-*
Expand All @@ -57,7 +57,7 @@ By default, the action will fail when it was not possible to delete an artifact
```yml
steps:
- uses: geekyeggo/delete-artifact@v4
- uses: geekyeggo/delete-artifact@v5
with:
name: okay-to-keep
failOnError: false
Expand Down

0 comments on commit 24928e7

Please sign in to comment.