Cleanup Releases #10
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: "Cleanup Releases" | |
on: | |
# You can manually run this workflow. | |
workflow_dispatch: | |
jobs: | |
# --------------------------------------------------------------------------------------- | |
release-cleanup: | |
# --------------------------------------------------------------------------------------- | |
name: "Releases Cleanup" | |
runs-on: ubuntu-latest | |
steps: | |
- name: 🤘 Checkout Code | |
uses: actions/checkout@v3 # https://github.com/actions/checkout | |
- name: ✂ Releases-Cleanup | |
uses: alfameCom/delete-releases@v1 # https://github.com/alfameCom/delete-releases | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
with: | |
types: 'draft,prerelease,release' | |
keep: '3' |