Require pass release version during workflow_dispatch trigger.
This commit is contained in:
6
.github/workflows/ci.yml
vendored
6
.github/workflows/ci.yml
vendored
@@ -2,6 +2,10 @@ name: CI
|
||||
|
||||
on:
|
||||
workflow_dispatch:
|
||||
inputs:
|
||||
releaseVersion:
|
||||
description: 'The next release version to use in the format of v1.x.x'
|
||||
required: true
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
@@ -32,6 +36,6 @@ jobs:
|
||||
- name: Release
|
||||
if: github.event_name == 'workflow_dispatch'
|
||||
run: |
|
||||
gh release create v${{github.sha}} --generate-notes ./_layout/action-versions.zip ./_layout/action-versions.tar.gz
|
||||
gh release create ${{github.event.inputs.releaseVersion}} --generate-notes ./_layout/action-versions.zip ./_layout/action-versions.tar.gz
|
||||
env:
|
||||
GH_TOKEN: ${{ github.token }}
|
||||
|
||||
Reference in New Issue
Block a user