Skip to content

🧼 Pull Request - Cleanup Tags and Releases #10

🧼 Pull Request - Cleanup Tags and Releases

🧼 Pull Request - Cleanup Tags and Releases #10

name: 🧼 Pull Request - Cleanup Tags and Releases
on:
delete:
pull_request:
types: [closed]
workflow_dispatch:
inputs:
regex:
description: Regex to search by i.e:<br /> <code>[v]?[0-9]\.[0-9]\.[0-9]-(.*)</code>
required: false
pr_number:
description: 'PR Number to search by'
required: false
jobs:
cleanup:
name: Cleanup Tags and Releases
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
path: github-action-cleanup-releases-and-tags
fetch-depth: 0
- name: Remove unused releases and tags
uses: ./github-action-cleanup-releases-and-tags
with:
github_token: ${{ secrets.GH_PERSONAL_ACCESS_TOKEN || secrets.GITHUB_TOKEN }}
regex: ${{ github.event.inputs.regex }}
pr_number: ${{ github.event.inputs.pr_number }}