🔨 Add a manual dispatch, with tag input

This commit is contained in:
Alicia Sykes 2024-05-25 15:27:26 +01:00 committed by GitHub
parent 462d9dbff2
commit 8e01d342a8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 10 additions and 4 deletions

View File

@ -3,7 +3,13 @@ name: 🏗️ Draft New Release
on: on:
push: push:
tags: tags:
- '*.*.*' - '^[0-9]+\.[0-9]+\.[0-9]+$'
- '**'
workflow_dispatch:
inputs:
tag:
description: 'Tag to draft a release for (must already exist)'
required: true
jobs: jobs:
create-draft-release: create-draft-release:
@ -18,10 +24,10 @@ jobs:
id: create_release id: create_release
uses: actions/create-release@v1 uses: actions/create-release@v1
env: env:
GITHUB_TOKEN: ${{ secrets.BOT_GITHUB_TOKEN || secrets.GITHUB_TOKEN }} GITHUB_TOKEN: ${{ secrets.BOT_GITHUB_TOKEN || secrets.GITHUB_TOKEN }}
with: with:
tag_name: ${{ github.ref }} tag_name: ${{ github.event.inputs.tag || github.ref_name }}
release_name: Release ${{ github.ref }} release_name: Release ${{ github.event.inputs.tag || github.ref_name }}
draft: true draft: true
prerelease: false prerelease: false
generate_release_notes: true generate_release_notes: true