mirror of
https://github.com/MaaAssistantArknights/MaaAssistantArknights.git
synced 2026-07-15 17:30:27 +08:00
ci: allow input nightly tag
This commit is contained in:
7
.github/workflows/release-nightly-ota.yml
vendored
7
.github/workflows/release-nightly-ota.yml
vendored
@@ -16,6 +16,9 @@ on:
|
||||
description: 'Number of releases to fetch from MaaRelease'
|
||||
required: false
|
||||
default: 30
|
||||
tag_name:
|
||||
description: 'Tag name to release'
|
||||
required: false
|
||||
|
||||
jobs:
|
||||
build-win-nightly:
|
||||
@@ -37,6 +40,10 @@ jobs:
|
||||
- name: Set tag
|
||||
id: set_tag
|
||||
run: |
|
||||
if ("${{ inputs.tag_name }}" -ne "") {
|
||||
echo "tag=${{ inputs.tag_name }}" >> $env:GITHUB_OUTPUT
|
||||
exit 0
|
||||
}
|
||||
$described = $(git describe --tags --long --match 'v*')
|
||||
$ids = $($described -split "-")
|
||||
if ($ids.length -eq 3) {
|
||||
|
||||
Reference in New Issue
Block a user