forked from MaterialDesignInXAML/MaterialDesignInXamlToolkit
-
Notifications
You must be signed in to change notification settings - Fork 0
54 lines (51 loc) · 2.07 KB
/
get_versions.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
name: Setup Versions
on:
workflow_call:
inputs:
is-full-release:
required: false
type: boolean
default: false
outputs:
mdix-version:
description: "The version for the MaterialDesignThemes library"
value: ${{ jobs.getting_versions.outputs.mdix-version }}
mdix-colors-version:
description: "The version for the MaterialDesignColors library"
value: ${{ jobs.getting_versions.outputs.mdix-colors-version }}
mdix-mahapps-version:
description: "The version for the MaterialDesignThemes.MahApps library"
value: ${{ jobs.getting_versions.outputs.mdix-mahapps-version }}
jobs:
getting_versions:
env:
#Update these base version numbers
mdix-version: "5.2.2"
mdix-colors-version: "5.2.2"
mdix-mahapps-version: "5.2.2"
name: Set version numbers
runs-on: ubuntu-latest
defaults:
run:
shell: pwsh
# Map the job outputs to step outputs
outputs:
mdix-version: ${{ steps.output_versions.outputs.mdix-version }}
mdix-colors-version: ${{ steps.output_versions.outputs.mdix-colors-version }}
mdix-mahapps-version: ${{ steps.output_versions.outputs.mdix-mahapps-version }}
steps:
- name: Set preview version numbers
if: ${{ !inputs.is-full-release }}
run: |
"mdix-version=${{ env.mdix-version }}-ci${{ github.run_number }}" >> $env:GITHUB_ENV
"mdix-colors-version=${{ env.mdix-colors-version }}-ci${{ github.run_number }}" >> $env:GITHUB_ENV
"mdix-mahapps-version=${{ env.mdix-mahapps-version }}-ci${{ github.run_number }}" >> $env:GITHUB_ENV
- name: Output Versions
id: output_versions
run: |
echo ${{ env.mdix-version }}
"mdix-version=${{ env.mdix-version }}" >> $env:GITHUB_OUTPUT
echo ${{ env.mdix-colors-version }}
"mdix-colors-version=${{ env.mdix-colors-version }}" >> $env:GITHUB_OUTPUT
echo ${{ env.mdix-mahapps-version }}
"mdix-mahapps-version=${{ env.mdix-mahapps-version }}" >> $env:GITHUB_OUTPUT