diff --git a/.github/workflows/part-compute-version.yml b/.github/workflows/part-compute-version.yml index 7209194fa..6a9b44a63 100644 --- a/.github/workflows/part-compute-version.yml +++ b/.github/workflows/part-compute-version.yml @@ -43,8 +43,11 @@ jobs: $revRequestUrl = "$apiBaseUrl/workflows/$workflowId/runs?created=$($createdAtPST.ToString($dateFormat))..$($createdAtPST.AddDays(1).ToString($dateFormat))"; $rev = curl -s -H "Authorization: token ${{ secrets.GITHUB_TOKEN }}" $revRequestUrl | jq .total_count; - $path = "version.txt"; - $version = "$((cat $path).Trim())" + # Current version number is sourced from the top of CHANGELOG.md + $version = Get-Content -Path CHANGELOG.md -TotalCount 1 + + $version = $version.Trim('#').Trim() + $date = $createdAtPST.ToString("yyyyMMdd") $prereleaseSlug = "${{ inputs.prereleaseSlug }}" echo "Version from $($path): $version"; diff --git a/Coalesce.sln b/Coalesce.sln index 9fd58f46e..4bde1d305 100644 --- a/Coalesce.sln +++ b/Coalesce.sln @@ -16,7 +16,7 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Coalesce.lutconfig = Coalesce.lutconfig src\Common.props = src\Common.props src\Directory.Build.props = src\Directory.Build.props - version.txt = version.txt + CHANGELOG.md = CHANGELOG.md EndProjectSection EndProject Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "test", "test", "{CCBE3CC2-7DA3-4BA1-96A1-7BAAF8533D58}" diff --git a/version.txt b/version.txt deleted file mode 100644 index 28cbf7c0a..000000000 --- a/version.txt +++ /dev/null @@ -1 +0,0 @@ -5.0.0 \ No newline at end of file