mirror of
https://github.com/MaaAssistantArknights/MaaAssistantArknights.git
synced 2026-07-16 09:50:40 +08:00
ci: nightly version
This commit is contained in:
6
.github/workflows/release-nightly-ota.yml
vendored
6
.github/workflows/release-nightly-ota.yml
vendored
@@ -65,11 +65,13 @@ jobs:
|
||||
$ids = $($described -split "-")
|
||||
if ($ids.length -eq 3) {
|
||||
$ver = "v$(semver --increment $ids[0].Substring(1))"
|
||||
echo "tag=$ver-alpha.0.$($ids[1]).$($ids[2])" >> $env:GITHUB_OUTPUT
|
||||
$dist = `printf "%05d"` $ids[1]
|
||||
echo "tag=$ver-alpha.1.$($dist).$($ids[2])" >> $env:GITHUB_OUTPUT
|
||||
exit 0
|
||||
}
|
||||
if ($ids.length -eq 4) {
|
||||
echo "tag=$($ids[0])-$($ids[1]).$($ids[2]).$($ids[3])" >> $env:GITHUB_OUTPUT
|
||||
$dist = `printf "%05d"` $ids[2]
|
||||
echo "tag=$($ids[0])-$($ids[1]).$($dist).$($ids[3])" >> $env:GITHUB_OUTPUT
|
||||
exit 0
|
||||
}
|
||||
exit 1
|
||||
|
||||
Reference in New Issue
Block a user