Skip to content

Commit

Permalink
feat: prep for intial release
Browse files Browse the repository at this point in the history
  • Loading branch information
raisedadead committed Sep 27, 2023
1 parent 0eaf3bd commit ddd4a19
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,9 @@ Number of days. Tags older than these many days will be deleted. Default is "2".

- uses: raisedadead/action-docr-cleanup@v1
with:
repository_name: 'your-repository-name'
dry_run: 'true'
days: '7'
repository_name: 'your-repository-name'
dry_run: 'true'
days: '7'
```
## Manual run:
Expand Down
7 changes: 5 additions & 2 deletions action.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
name: 'DigitalOcean Registry Cleanup Action'
description: 'Deletes tags older than a specified number of days from a DigitalOcean container registry'
author: 'Your Name'
author: 'Mrugesh Mohapatra'
branding:
icon: 'trash'
color: 'red'
inputs:
repository_name:
description: 'Name of the DigitalOcean container registry repository'
Expand All @@ -17,5 +20,5 @@ inputs:
runs:
using: 'composite'
steps:
- run: bash entrypoint.sh -n ${{ inputs.days }} ${{ inputs.repository_name }} ${{ inputs.dry_run == 'true' && '-d' || '' }}
- run: $GITHUB_ACTION_PATH/entrypoint.sh ${{ inputs.dry_run == 'true' && '-d' || '' }} -n ${{ inputs.days }} ${{ inputs.repository_name }}
shell: bash

0 comments on commit ddd4a19

Please sign in to comment.