Skip to content

Commit 83eba75

Browse files
committed
Require pass release version during workflow_dispatch trigger.
1 parent 91a27d8 commit 83eba75

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

.github/workflows/ci.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@ name: CI
22

33
on:
44
workflow_dispatch:
5+
inputs:
6+
releaseVersion:
7+
description: 'The next release version to use in the format of v1.x.x'
8+
required: true
59
push:
610
branches:
711
- main
@@ -32,6 +36,6 @@ jobs:
3236
- name: Release
3337
if: github.event_name == 'workflow_dispatch'
3438
run: |
35-
gh release create v${{github.sha}} --generate-notes ./_layout/action-versions.zip ./_layout/action-versions.tar.gz
39+
gh release create ${{github.event.inputs.releaseVersion}} --generate-notes ./_layout/action-versions.zip ./_layout/action-versions.tar.gz
3640
env:
3741
GH_TOKEN: ${{ github.token }}

0 commit comments

Comments
 (0)