From 9b8b1287cb40028f3a03bd80ce3471f8042c5a72 Mon Sep 17 00:00:00 2001 From: kolosovpetro Date: Thu, 16 Nov 2023 13:05:13 +0100 Subject: [PATCH] update pdf version --- azure-pipelines/azure-pipelines-linux-mshosted.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/azure-pipelines/azure-pipelines-linux-mshosted.yml b/azure-pipelines/azure-pipelines-linux-mshosted.yml index 02bc8be..7cd0fc1 100644 --- a/azure-pipelines/azure-pipelines-linux-mshosted.yml +++ b/azure-pipelines/azure-pipelines-linux-mshosted.yml @@ -58,6 +58,12 @@ stages: sudo chmod -R 775 $(OutputDirectory) workingDirectory: '$(System.DefaultWorkingDirectory)' displayName: 'Create Output Directory' + + - bash: | + newVersion="$(GitVersion.SemVer)+$(GitVersion.BranchName).$(GitVersion.ShortSha)" + sed -i "s|Local-0.1.0|$newVersion|" "src/sections/version.tex" + displayName: 'Update version.tex' + workingDirectory: '$(System.DefaultWorkingDirectory)' - bash: | echo "Compiling LaTeX document first time ..."