Refactor build version generation in dotnet.yml

Previously, the build version was generated using the `date` command. This commit changes it to directly use the `github.run_number` variable, resulting in a simplified and more consistent build version format.

Impact:
- Updated the `buildVersion` export statement in dotnet.yml to use `0.0.0-beta${{ github.run_number }}`

Tests:
- No tests were impacted by this change
This commit is contained in:
Diego Colombo
2024-07-01 14:54:39 +01:00
parent 675f5caca6
commit 39bcc4d3ce
+1 -1
View File
@@ -28,7 +28,7 @@ jobs:
id: dateStep
run: |
export sha7=${SHA7::7}
export buildVersion=$(date '0.0.0-beta${{ github.run_number }}')
export buildVersion=0.0.0-beta${{ github.run_number }}
echo "::set-output name=buildVersion::$buildVersion"
echo "::set-output name=buildMode::$buildMode"