docs
This commit is contained in:
@@ -79,6 +79,8 @@ Package version ids can be retrieved via the [GitHub GraphQL API][api].
|
|||||||
|
|
||||||
The [token][token] only needs the delete packages scope. It is recommended [to store the token as a secret][secret]. In this example the [token][token] was stored as a secret named __GITHUB_PAT__.
|
The [token][token] only needs the delete packages scope. It is recommended [to store the token as a secret][secret]. In this example the [token][token] was stored as a secret named __GITHUB_PAT__.
|
||||||
|
|
||||||
|
__Example__
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
- uses: actions/delete-package-versions@v1
|
- uses: actions/delete-package-versions@v1
|
||||||
with:
|
with:
|
||||||
@@ -94,6 +96,8 @@ To delete multiple specifc versions from a package that is hosted in the same re
|
|||||||
|
|
||||||
The __package-version-ids__ input should be a comma separated string of package version ids. Package version ids can be retrieved via the [GitHub GraphQL API][api].
|
The __package-version-ids__ input should be a comma separated string of package version ids. Package version ids can be retrieved via the [GitHub GraphQL API][api].
|
||||||
|
|
||||||
|
__Example__
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
- uses: actions/delete-package-versions@v1
|
- uses: actions/delete-package-versions@v1
|
||||||
with:
|
with:
|
||||||
@@ -110,6 +114,8 @@ The __package-version-ids__ input should be a comma separated string of package
|
|||||||
|
|
||||||
The [token][token] only needs the delete packages scope. It is recommended [to store the token as a secret][secret]. In this example the [token][token] was stored as a secret named __GITHUB_PAT__.
|
The [token][token] only needs the delete packages scope. It is recommended [to store the token as a secret][secret]. In this example the [token][token] was stored as a secret named __GITHUB_PAT__.
|
||||||
|
|
||||||
|
__Example__
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
- uses: actions/delete-package-versions@v1
|
- uses: actions/delete-package-versions@v1
|
||||||
with:
|
with:
|
||||||
@@ -123,6 +129,8 @@ The [token][token] only needs the delete packages scope. It is recommended [to s
|
|||||||
|
|
||||||
To delete the oldest version from a package that is hosted in the same repo that is executing the workflow the __package-name__ input is required.
|
To delete the oldest version from a package that is hosted in the same repo that is executing the workflow the __package-name__ input is required.
|
||||||
|
|
||||||
|
__Example__
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
- uses: actions/delete-package-versions@v1
|
- uses: actions/delete-package-versions@v1
|
||||||
with:
|
with:
|
||||||
@@ -137,6 +145,8 @@ To delete the oldest version from a package that is hosted in a different repo t
|
|||||||
|
|
||||||
The [token][token] needs the delete packages and read packages scope. It is recommended [to store the token as a secret][secret]. In this example the [token][token] was stored as a secret named __GITHUB_PAT__.
|
The [token][token] needs the delete packages and read packages scope. It is recommended [to store the token as a secret][secret]. In this example the [token][token] was stored as a secret named __GITHUB_PAT__.
|
||||||
|
|
||||||
|
__Example__
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
- uses: actions/delete-package-versions@v1
|
- uses: actions/delete-package-versions@v1
|
||||||
with:
|
with:
|
||||||
|
|||||||
Reference in New Issue
Block a user