-
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
b718c9b
commit 0a9ceab
Showing
1 changed file
with
30 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,31 @@ | ||
# delete-release-assets-action | ||
A simple GitHub action which deletes all assets attached to a release. It is mainly designed to make sure electron-builder doesn't fail in case an asset already exists.. | ||
|
||
A simple GitHub action which deletes all assets attached to a release. It is mainly designed to make sure electron-builder doesn't fail in case an asset already exists. | ||
|
||
## Inputs | ||
|
||
| name | required? | description | | ||
| -------------- | --------- | ------------------------------------------------------------------------------------------- | | ||
| `github_token` | yes | GitHub Access Token (usually `secrets.GITHUB_TOKEN`) | | ||
| `tag` | no | Tag name that identifies the release (version is read from `package.json` if not specified) | | ||
|
||
## Example usage | ||
|
||
```yml | ||
name: Delete Release Assets | ||
|
||
on: push | ||
|
||
jobs: | ||
deleteReleaseAssets: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Check out Git repository | ||
uses: actions/checkout@v1 | ||
|
||
- name: Delete current release assets | ||
uses: andreaswilli/delete-release-assets-action@<version> | ||
with: | ||
github_token: ${{ secrets.GITHUB_TOKEN }} | ||
``` |