diff --git a/builds/misc/templates/build-packages.yaml b/builds/misc/templates/build-packages.yaml index 142a109c364..2821bd49107 100644 --- a/builds/misc/templates/build-packages.yaml +++ b/builds/misc/templates/build-packages.yaml @@ -318,7 +318,12 @@ stages: set -ex git clone --recurse-submodules --branch main https://github.com/Azure/iot-identity-service.git pushd iot-identity-service - packageVersion=$(git tag | grep 1.5.[0-9]*$ | sort --version-sort -r | head -1) + packageVersion=$( + grep "PACKAGE_VERSION:" .github/workflows/packages.yaml \ + | awk '{print $2}' \ + | tr -d "'" \ + | tr -d '"' + ) sudo docker run --rm \ -v "$(Build.SourcesDirectory)/iot-identity-service:/src" \ -e "ARCH=$PACKAGE_ARCH" \ diff --git a/scripts/linux/github/updateLatestVersion.sh b/scripts/linux/github/updateLatestVersion.sh index dddcf6bdde0..1f193608b4c 100755 --- a/scripts/linux/github/updateLatestVersion.sh +++ b/scripts/linux/github/updateLatestVersion.sh @@ -175,9 +175,9 @@ update_product_versions_json() proposedEdgeletVersion=$(cat $IOTEDGE_REPO_PATH/edgelet/version.txt) proposedCoreImageVersion=$(cat $IOTEDGE_REPO_PATH/versionInfo.json | jq -r '.version') proposedIisVersion=$( - grep "PACKAGE_VERSION:" $IIS_REPO_PATH/.github/workflows/packages.yaml - | awk '{print $2}' - | tr -d "'" + grep "PACKAGE_VERSION:" $IIS_REPO_PATH/.github/workflows/packages.yaml \ + | awk '{print $2}' \ + | tr -d "'" \ | tr -d '"' )