name: Deploy
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- run: blah.sh
prune:
runs-on: ubuntu-latest
needs: deploy
if: ${{ needs.checks.outputs.result == 'success' }}
steps:
- name: Install doctl
uses: digitalocean/action-doctl@v2
with:
token: ${{ secrets.DO_API_TOKEN }}
- name: Prune tags
uses: uplift-ltd/prune-docr-tags-action
with:
repository: my-app
keep: 10
- name: Run garbage collection
run: doctl registry garbage-collection start
input |
required |
default |
description |
repository |
required |
|
The name of the repository to prune. |
keep |
optional |
10 |
How many tags to keep. |