release: v1.0.2 跨平台钉钉通知与流程版本编号约定

This commit is contained in:
chenmingxuan committed 2026-09-09 11:52:17 +08:00
1 parent 4f9efd175d
commit a08cfd6a3b
17 files changed
+858 -290

No files matched your search

+11
View File
@@ -0,0 +1,11 @@
# Requires PowerShell 7.3+ for native argument passing (quotes and Markdown).
$ErrorActionPreference = 'Stop'
if ($PSVersionTable.PSVersion -lt [version]'7.3') { throw 'Please use PowerShell 7.3+ or the Python entry.' }
$PSNativeCommandArgumentPassing = 'Standard'
$env:PYTHONIOENCODING = 'utf-8'
if (Get-Command python -CommandType Application -ErrorAction SilentlyContinue) {
& python "$PSScriptRoot/dingtalk_notify.py" message @args
} elseif (Get-Command py -CommandType Application -ErrorAction SilentlyContinue) {
& py -3 "$PSScriptRoot/dingtalk_notify.py" message @args
} else { throw 'Python 3.9+ is required.' }
exit $LASTEXITCODE