Skip to content

Commit

Permalink
Actions: Release cleanup action
Browse files Browse the repository at this point in the history
  • Loading branch information
ShonP40 committed Sep 4, 2023
1 parent 2398f8c commit dc0189f
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions .github/workflows/cleanup.yml
@@ -0,0 +1,22 @@
on:
release:
types: [published]

jobs:
cleanup:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
ref: master
fetch-depth:
- name: Get previous release tag
id: previous-release
uses: actions/get-previous-release-action@v1

- name: Delete old release assets
uses: mknejp/delete-release-assets@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}
tag: ${{ steps.previous-release.output.release }}
assets: CheatBreaker*

0 comments on commit dc0189f

Please sign in to comment.