Skip to content

Commit ed75b18

Browse files
authored
Merge pull request #2 from chipkent/bug_fix
Fixed a bug in the action
2 parents 091627b + df87d82 commit ed75b18

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

README.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@
33
This is a GitHub Action to delete GitHub packages. It is very useful to clean up unneeded Docker
44
images in the GitHub Container Registry (ghcr.io) after a PR is closed.
55

6+
The example below removes Docker images in ghcr.io with the specified package name and tag. Here, `github-token`
7+
is set to a secret, `CI_ACTION_TOKEN`, which is a personal access token with package deletion permissions.
8+
69
```
710
# Delete Docker images after PR merge
811
#
@@ -18,7 +21,7 @@ jobs:
1821
name: Delete image from ghcr.io
1922
runs-on: ubuntu-latest
2023
steps:
21-
- uses: chipkent/action-cleanup-package@v1.0.0
24+
- uses: chipkent/action-cleanup-package@v1.0.1
2225
with:
2326
package-name: ${{ github.event.repository.name }}
2427
tag: pr-${{ github.event.pull_request.number }}

action.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,5 +19,7 @@ runs:
1919
python-version: '3.8'
2020
- name: Install packages
2121
run: pip install requests
22+
shell: bash
2223
- name: Delete image from ghcr.io
2324
run: python ${{ github.action_path }}/docker-cleanup.py ${{ inputs.package-name }} ${{ inputs.tag }} ${{ inputs.github-token }}
25+
shell: bash

0 commit comments

Comments
 (0)