Cleanup Release Draft #41
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Cleanup Release Draft | |
| on: | |
| workflow_run: | |
| workflows: ["Release Drafter (v3 packages)"] | |
| types: [completed] | |
| workflow_dispatch: | |
| inputs: | |
| tag: | |
| description: 'Tag or name of a specific draft (empty = all drafts)' | |
| required: false | |
| type: string | |
| default: '' | |
| permissions: | |
| contents: read | |
| concurrency: | |
| group: cleanup-release-draft-${{ github.repository }} | |
| cancel-in-progress: true | |
| jobs: | |
| cleanup: | |
| runs-on: ubuntu-latest | |
| if: >- | |
| github.event.workflow_run.conclusion == 'success' || | |
| github.event_name == 'workflow_dispatch' | |
| permissions: | |
| contents: write | |
| steps: | |
| - uses: gofiber/.github/.github/actions/cleanup-release-draft@main | |
| with: | |
| tag: ${{ inputs.tag }} |