Added the current CPU architecture to the metadata (#402)

This commit is contained in:
Thorsten Sommer authored and GitHub committed 2025-04-15 08:08:39 +02:00
1 parent c715b38f41
commit b153b9c4e9
16 files changed
+177 -71

No files matched your search

+9
View File
@@ -160,6 +160,9 @@ jobs:
# Format the app version:
formatted_app_version="v${app_version}"
# Set the architecture:
sed -i '' "10s/.*/${{ matrix.dotnet_runtime }}/" metadata.txt
# Write the metadata to the environment:
echo "APP_VERSION=${app_version}" >> $GITHUB_ENV
echo "FORMATTED_APP_VERSION=${formatted_app_version}" >> $GITHUB_ENV
@@ -212,6 +215,12 @@ jobs:
# Format the app version:
$formatted_app_version = "v${app_version}"
# Set the architecture:
$metadata[9] = "${{ matrix.dotnet_runtime }}"
# Write the changed metadata back to the file:
Set-Content -Path metadata.txt -Value $metadata
# Write the metadata to the environment:
Write-Output "APP_VERSION=${app_version}" >> $env:GITHUB_ENV
Write-Output "FORMATTED_APP_VERSION=${formatted_app_version}" >> $env:GITHUB_ENV