File tree Expand file tree Collapse file tree 2 files changed +22
-4
lines changed Expand file tree Collapse file tree 2 files changed +22
-4
lines changed Original file line number Diff line number Diff line change 2323 getting_versions :
2424 env :
2525 # Update these base version numbers
26- mdix-version : " 4.8.1 "
27- mdix-colors-version : " 2.1.3 "
28- mdix-mahapps-version : " 0.2.9 "
26+ mdix-version : " 4.9.0 "
27+ mdix-colors-version : " 2.1.4 "
28+ mdix-mahapps-version : " 0.3.0 "
2929 name : Set version numbers
3030 runs-on : ubuntu-latest
3131 defaults :
Original file line number Diff line number Diff line change 2323 uses : ./.github/workflows/get_versions.yml
2424 with :
2525 is-full-release : true
26-
26+
27+ version_number_check :
28+ needs : [get_versions]
29+ name : Version matches milestone
30+
31+ steps :
32+ - name : Check versions
33+ run : |
34+ if ('${{ inputs.milestone }}' -ne '${{ needs.get_versions.outputs.mdix-version }}') {
35+ Write-Error "Milestone ${{ inputs.milestone }} does not match MDIX ${{ needs.get_versions.outputs.mdix-version }}"
36+ exit 1
37+ } else {
38+ Write-Host "Versions match"
39+ }
40+
2741 build_release_notes :
2842 runs-on : ubuntu-latest
2943 name : Generate Release Notes
@@ -246,6 +260,9 @@ jobs:
246260 name : Update Version Numbers
247261 environment : production
248262
263+ permissions :
264+ actions : write
265+
249266 steps :
250267 # Checkout is needed so that we can update the get_versions.yml file
251268 - uses : actions/checkout@v3
@@ -266,6 +283,7 @@ jobs:
266283 if ($match[0] -match $versionPattern) {
267284 $newVersion = $Matches[1] + ([int]$Matches[2] + 1)
268285 $workflowContent = $workflowContent -replace $pattern,"$Prefix`: `"$newVersion`""
286+ Write-Host "$Prefix updated to $newVersion"
269287 } else {
270288 Write-Error "Failed to update $Prefix version"
271289 }
You can’t perform that action at this time.
0 commit comments