CreamInstaller/.github/workflows/delete_releases.yml

31 lines
676 B
YAML
Raw Normal View History

2023-01-14 01:45:42 +05:00
name: Delete Releases
on:
workflow_dispatch:
inputs:
tagPattern:
description: 'Tag pattern'
required: true
default: 'v1'
jobs:
delete:
name: Delete
runs-on: windows-latest
if: ${{ github.event.repository.owner.id }} == ${{ github.event.sender.id }}
2023-01-14 02:15:51 +05:00
permissions: write-all
2023-01-14 01:45:42 +05:00
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Delete
uses: dev-drprasad/delete-older-releases@v0.2.1
with:
keep_latest: 0
delete_tags: true
delete_tag_pattern: ${{ github.event.inputs.tagPattern }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}