Skip to content

Commit

Permalink
update docs
Browse files Browse the repository at this point in the history
  • Loading branch information
Chizkiyahu committed Oct 31, 2023
1 parent 48d865f commit 5e356de
Showing 1 changed file with 50 additions and 50 deletions.
100 changes: 50 additions & 50 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ delete all / untagged ghcr containers in a repository
<!-- start usage -->
```yaml
- name: Delete untagged ghcr
uses: Chizkiyahu/delete-untagged-ghcr-action@v2
uses: Chizkiyahu/delete-untagged-ghcr-action@v3
with:
# Personal access token (PAT) used to fetch the repository. The PAT is configured
# with the local git config, which enables your scripts to run authenticated git
Expand Down Expand Up @@ -58,17 +58,17 @@ delete all / untagged ghcr containers in a repository
## Delete all owner containers without tags
```yaml
- name: Delete all owner containers without tags
uses: Chizkiyahu/delete-untagged-ghcr-action@v2
with:
token: ${{ secrets.PAT_TOKEN }}
repository_owner: ${{ github.repository_owner }}
owner_type: org # or user
uses: Chizkiyahu/delete-untagged-ghcr-action@v3
with:
token: ${{ secrets.PAT_TOKEN }}
repository_owner: ${{ github.repository_owner }}
owner_type: org # or user
```

## Delete all owner containers
```yaml
- name: Delete all owner containers
uses: Chizkiyahu/delete-untagged-ghcr-action@v2
- name: Delete all owner containers
uses: Chizkiyahu/delete-untagged-ghcr-action@v3
with:
token: ${{ secrets.PAT_TOKEN }}
repository_owner: ${{ github.repository_owner }}
Expand All @@ -78,8 +78,8 @@ delete all / untagged ghcr containers in a repository

## Delete all containers from repository without tags
```yaml
- name: Delete all containers from repository without tags
uses: Chizkiyahu/delete-untagged-ghcr-action@v2
- name: Delete all containers from repository without tags
uses: Chizkiyahu/delete-untagged-ghcr-action@v3
with:
token: ${{ secrets.PAT_TOKEN }}
repository_owner: ${{ github.repository_owner }}
Expand All @@ -100,41 +100,41 @@ delete all / untagged ghcr containers in a repository
username: ${{ github.actor }}
password: ${{ secrets.PAT_TOKEN }}
- name: Delete all containers from repository without tags
uses: Chizkiyahu/delete-untagged-ghcr-action@v2
with:
token: ${{ secrets.PAT_TOKEN }}
repository_owner: ${{ github.repository_owner }}
repository: ${{ github.repository }}
untagged_only: true
owner_type: org # or user
except_untagged_multiplatform: true
uses: Chizkiyahu/delete-untagged-ghcr-action@v3
with:
token: ${{ secrets.PAT_TOKEN }}
repository_owner: ${{ github.repository_owner }}
repository: ${{ github.repository }}
untagged_only: true
owner_type: org # or user
except_untagged_multiplatform: true

```


## Delete all containers from repository
```yaml
- name: Delete all containers from repository
uses: Chizkiyahu/delete-untagged-ghcr-action@v2
with:
token: ${{ secrets.PAT_TOKEN }}
repository_owner: ${{ github.repository_owner }}
repository: ${{ github.repository }}
untagged_only: false
owner_type: org # or user
uses: Chizkiyahu/delete-untagged-ghcr-action@v3
with:
token: ${{ secrets.PAT_TOKEN }}
repository_owner: ${{ github.repository_owner }}
repository: ${{ github.repository }}
untagged_only: false
owner_type: org # or user
```

## Delete all containers from package without tags
```yaml
- name: Delete all containers from package without tags
uses: Chizkiyahu/delete-untagged-ghcr-action@v2
with:
token: ${{ github.token }}
repository_owner: ${{ github.repository_owner }}
repository: ${{ github.repository }}
package_name: the-package-name
untagged_only: true
owner_type: org # or user
uses: Chizkiyahu/delete-untagged-ghcr-action@v3
with:
token: ${{ github.token }}
repository_owner: ${{ github.repository_owner }}
repository: ${{ github.repository }}
package_name: the-package-name # full name includes the repository name if is connected to repository
untagged_only: true
owner_type: org # or user
```

## Delete all containers from package without tags except untagged multiplatform packages
Expand All @@ -148,26 +148,26 @@ delete all / untagged ghcr containers in a repository
username: ${{ github.repository_owner }}
password: ${{ github.token }}
- name: Delete all containers from package without tags
uses: Chizkiyahu/delete-untagged-ghcr-action@v2
with:
token: ${{ github.token }}
repository_owner: ${{ github.repository_owner }}
repository: ${{ github.repository }}
package_name: the-package-name
untagged_only: true
owner_type: org # or user
except_untagged_multiplatform: true
uses: Chizkiyahu/delete-untagged-ghcr-action@v3
with:
token: ${{ github.token }}
repository_owner: ${{ github.repository_owner }}
repository: ${{ github.repository }}
package_name: the-package-name # full name includes the repository name if is connected to repository
untagged_only: true
owner_type: org # or user
except_untagged_multiplatform: true
```

## Delete all containers from package
```yaml
- name: Delete all containers from package
uses: Chizkiyahu/delete-untagged-ghcr-action@v2
with:
token: ${{ github.token }}
repository_owner: ${{ github.repository_owner }}
repository: ${{ github.repository }}
package_name: the-package-name
untagged_only: false
owner_type: org # or user
uses: Chizkiyahu/delete-untagged-ghcr-action@v3
with:
token: ${{ github.token }}
repository_owner: ${{ github.repository_owner }}
repository: ${{ github.repository }}
package_name: the-package-name # full name includes the repository name if is connected to repository
untagged_only: false
owner_type: org # or user
```

0 comments on commit 5e356de

Please sign in to comment.