We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ea9b599 commit 400a9aeCopy full SHA for 400a9ae
1 file changed
.github/workflows/cleanup-release-draft.yml
@@ -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