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 23
23
getting_versions :
24
24
env :
25
25
# 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 "
29
29
name : Set version numbers
30
30
runs-on : ubuntu-latest
31
31
defaults :
Original file line number Diff line number Diff line change 23
23
uses : ./.github/workflows/get_versions.yml
24
24
with :
25
25
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
+
27
41
build_release_notes :
28
42
runs-on : ubuntu-latest
29
43
name : Generate Release Notes
@@ -246,6 +260,9 @@ jobs:
246
260
name : Update Version Numbers
247
261
environment : production
248
262
263
+ permissions :
264
+ actions : write
265
+
249
266
steps :
250
267
# Checkout is needed so that we can update the get_versions.yml file
251
268
- uses : actions/checkout@v3
@@ -266,6 +283,7 @@ jobs:
266
283
if ($match[0] -match $versionPattern) {
267
284
$newVersion = $Matches[1] + ([int]$Matches[2] + 1)
268
285
$workflowContent = $workflowContent -replace $pattern,"$Prefix`: `"$newVersion`""
286
+ Write-Host "$Prefix updated to $newVersion"
269
287
} else {
270
288
Write-Error "Failed to update $Prefix version"
271
289
}
You can’t perform that action at this time.
0 commit comments