Skip to content

Commit

Permalink
[skip ci] Fix version resolution in releases and versions in projects
Browse files Browse the repository at this point in the history
  • Loading branch information
rabelenda committed Sep 14, 2023
1 parent 4606a60 commit bfee26c
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions .github/fix-project-version.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@ update_file_versions() {
if [ $(echo "${BASE_VERSION}" | awk -F"." '{print NF-1}') == 1 ]; then
ASSEMBLY_VERSION="${ASSEMBLY_VERSION}.0"
fi
sed -i "s/<AssemblyVersion>[0-9.]\+<\/AssemblyVersion>/<AssemblyVersion>${ASSEMBLY_VERSION}<\/AssemblyVersion>/g" "${FILE}"
sed -i "s/<Version>[0-9.]\+<\/Version>/<Version>${VERSION}<\/Version>/g" "${FILE}"
sed -i "s/<FileVersion>[0-9.]\+<\/FileVersion>/<FileVersion>${BASE_VERSION}<\/FileVersion>/g" "${FILE}"
sed -i "s/<AssemblyVersion>[^<]\+<\/AssemblyVersion>/<AssemblyVersion>${ASSEMBLY_VERSION}<\/AssemblyVersion>/g" "${FILE}"
sed -i "s/<Version>[^<]\+<\/Version>/<Version>${VERSION}<\/Version>/g" "${FILE}"
sed -i "s/<FileVersion>[^<]\+<\/FileVersion>/<FileVersion>${BASE_VERSION}<\/FileVersion>/g" "${FILE}"
}

find . -name "*.csproj" | while read DOC_FILE; do
Expand Down
2 changes: 1 addition & 1 deletion Abstracta.JmeterDsl.Azure/Abstracta.JmeterDsl.Azure.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
<SymbolPackageFormat>snupkg</SymbolPackageFormat>
<EmbedUntrackedSources>true</EmbedUntrackedSources>
<AssemblyVersion>0.4.0.0</AssemblyVersion>
<Version>0.2-alpha1</Version>
<Version>0.4-alpha1</Version>
<FileVersion>0.4</FileVersion>
</PropertyGroup>
<PropertyGroup Condition="'$(GITHUB_ACTIONS)' == 'true'">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
<SymbolPackageFormat>snupkg</SymbolPackageFormat>
<EmbedUntrackedSources>true</EmbedUntrackedSources>
<AssemblyVersion>0.4.0.0</AssemblyVersion>
<Version>0.2-alpha1</Version>
<Version>0.4-alpha1</Version>
<FileVersion>0.4</FileVersion>
</PropertyGroup>

Expand Down
2 changes: 1 addition & 1 deletion Abstracta.JmeterDsl/Abstracta.JmeterDsl.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
<SymbolPackageFormat>snupkg</SymbolPackageFormat>
<EmbedUntrackedSources>true</EmbedUntrackedSources>
<AssemblyVersion>0.4.0.0</AssemblyVersion>
<Version>0.2-alpha1</Version>
<Version>0.4-alpha1</Version>
<FileVersion>0.4</FileVersion>
</PropertyGroup>
<PropertyGroup Condition="'$(GITHUB_ACTIONS)' == 'true'">
Expand Down

0 comments on commit bfee26c

Please sign in to comment.