1
0
mirror of synced 2026-05-22 18:53:15 +00:00

devops: trigger publish on new tag (#1787)

This commit is contained in:
Yury Semikhatsky
2025-05-02 10:55:07 -07:00
committed by GitHub
parent 9ad596ac75
commit fddb146d73
+7 -3
View File
@@ -1,6 +1,10 @@
trigger: none
pr: none
trigger:
tags:
include:
- '*'
resources:
repositories:
- repository: 1esPipelines
@@ -33,8 +37,8 @@ extends:
artifact: esrp-build
steps:
- bash: |
if [[ ! "$CURRENT_BRANCH" =~ ^release-.* ]]; then
echo "Can only publish from a release branch."
if [[ ! "$CURRENT_BRANCH" =~ ^v1\\..* ]]; then
echo "Can only publish from a release tag branch (v1.*)."
echo "Unexpected branch name: $CURRENT_BRANCH"
exit 1
fi