From d1ca1f44a0e856b7001a874805fdb8e8cb3e19a3 Mon Sep 17 00:00:00 2001 From: zhangxingzhi Date: Fri, 26 Apr 2024 22:24:26 +0800 Subject: [PATCH] update version in _version.py for promptflow --- .github/workflows/create_promptflow_release_tag.yml | 12 +++++++----- src/promptflow/promptflow/_version.py | 2 +- 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/.github/workflows/create_promptflow_release_tag.yml b/.github/workflows/create_promptflow_release_tag.yml index 29d52732091..b1f98c00464 100644 --- a/.github/workflows/create_promptflow_release_tag.yml +++ b/.github/workflows/create_promptflow_release_tag.yml @@ -37,11 +37,13 @@ jobs: echo "replaced src/promptflow/promptflow/_version.py:" cat src/promptflow/promptflow/_version.py - git add src/promptflow/promptflow/_version.py - git config --global user.name 'promptflow release' - git config --global user.email 'aml-pt-eng@microsoft.com' - git commit -m "update version in _version.py for promptflow" - git push --set-upstream origin $branch_name + if [[ $(git diff --name-only) == *"src/promptflow/promptflow/_version.py"* ]]; then + git add src/promptflow/promptflow/_version.py + git config --global user.name 'promptflow release' + git config --global user.email 'aml-pt-eng@microsoft.com' + git commit -m "update version in _version.py for promptflow" + git push --set-upstream origin $branch_name + fi git tag promptflow_$release_version git push origin --tags diff --git a/src/promptflow/promptflow/_version.py b/src/promptflow/promptflow/_version.py index 759746414f2..344d35d0a6e 100644 --- a/src/promptflow/promptflow/_version.py +++ b/src/promptflow/promptflow/_version.py @@ -2,4 +2,4 @@ # Copyright (c) Microsoft Corporation. All rights reserved. # --------------------------------------------------------- -VERSION = "1.9.0.dev0" +VERSION = "1.10.0"