Compare commits

..

No commits in common. "main" and "sv1.0.3" have entirely different histories.

2 changed files with 8 additions and 8 deletions

View File

@ -6,7 +6,7 @@ name: deploy-client
on:
push:
tags:
- 'deploy-cv*.*.*.*'
- 'deploy-cv*.*.*'
jobs:
deploy:
@ -20,10 +20,10 @@ jobs:
Set-StrictMode -Version Latest
$ErrorActionPreference = 'Stop'
# 从触发标签解析版本号: deploy-cv1.2.3.4 -> 1.2.3.4
# 从触发标签解析版本号: deploy-cv1.2.3 -> 1.2.3
$deployTag = '${{ github.ref_name }}'
if (-not ($deployTag -match '^deploy-cv(\d+\.\d+\.\d+\.\d+)$')) {
throw "Trigger tag '$deployTag' must match deploy-cvx.x.x.x."
if (-not ($deployTag -match '^deploy-cv(\d+\.\d+\.\d+)$')) {
throw "Trigger tag '$deployTag' must match deploy-cvx.x.x."
}
$version = $Matches[1]

View File

@ -6,7 +6,7 @@ name: deploy-server
on:
push:
tags:
- 'deploy-sv*.*.*.*'
- 'deploy-sv*.*.*'
jobs:
deploy:
@ -20,10 +20,10 @@ jobs:
Set-StrictMode -Version Latest
$ErrorActionPreference = 'Stop'
# 从触发标签解析版本号: deploy-sv1.2.3.4 -> 1.2.3.4
# 从触发标签解析版本号: deploy-sv1.2.3 -> 1.2.3
$deployTag = '${{ github.ref_name }}'
if (-not ($deployTag -match '^deploy-sv(\d+\.\d+\.\d+\.\d+)$')) {
throw "Trigger tag '$deployTag' must match deploy-svx.x.x.x."
if (-not ($deployTag -match '^deploy-sv(\d+\.\d+\.\d+)$')) {
throw "Trigger tag '$deployTag' must match deploy-svx.x.x."
}
$version = $Matches[1]