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:
|
on:
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
|
inputs:
|
||||||
|
releaseVersion:
|
||||||
|
description: 'The next release version to use in the format of v1.x.x'
|
||||||
|
required: true
|
||||||
push:
|
push:
|
||||||
branches:
|
branches:
|
||||||
- main
|
- main
|
||||||
@@ -32,6 +36,6 @@ jobs:
|
|||||||
- name: Release
|
- name: Release
|
||||||
if: github.event_name == 'workflow_dispatch'
|
if: github.event_name == 'workflow_dispatch'
|
||||||
run: |
|
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:
|
env:
|
||||||
GH_TOKEN: ${{ github.token }}
|
GH_TOKEN: ${{ github.token }}
|
||||||
|
|||||||
Reference in New Issue
Block a user