Clean up releases #115
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Clean up releases # So we don't overuse our quota | |
on: | |
workflow_run: | |
workflows: ["Build and Release"] | |
types: [completed] | |
jobs: | |
delete_old_release: | |
runs-on: ubuntu-latest | |
if: ${{ github.event.workflow_run.conclusion == 'success' }} | |
steps: | |
- uses: dev-drprasad/[email protected] | |
with: | |
keep_latest: 3 # keep the most recent 3 releases; make this 0 to delete all, or 1 to keep recent | |
delete_tags: true | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |