Skip to content

Commit 400a9ae

Browse files
committed
feat: enhance cleanup-release-draft workflow with manual trigger and improved draft handling
1 parent ea9b599 commit 400a9ae

1 file changed

Lines changed: 33 additions & 0 deletions

File tree

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: Cleanup Release Draft
2+
3+
on:
4+
workflow_run:
5+
workflows: ["Release Drafter"]
6+
types: [completed]
7+
workflow_dispatch:
8+
inputs:
9+
tag:
10+
description: 'Tag or name of a specific draft (empty = all drafts)'
11+
required: false
12+
type: string
13+
default: ''
14+
15+
permissions:
16+
contents: read
17+
18+
concurrency:
19+
group: cleanup-release-draft-${{ github.repository }}
20+
cancel-in-progress: true
21+
22+
jobs:
23+
cleanup:
24+
runs-on: ubuntu-latest
25+
if: >-
26+
github.event.workflow_run.conclusion == 'success' ||
27+
github.event_name == 'workflow_dispatch'
28+
permissions:
29+
contents: write
30+
steps:
31+
- uses: gofiber/.github/.github/actions/cleanup-release-draft@main
32+
with:
33+
tag: ${{ inputs.tag }}

0 commit comments

Comments
 (0)