-
Notifications
You must be signed in to change notification settings - Fork 15
41 lines (34 loc) · 1.16 KB
/
GetVersionTask.yml
File metadata and controls
41 lines (34 loc) · 1.16 KB
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
name: Get version information task
on:
workflow_call:
outputs:
SemVer2:
value: ${{ jobs.get-version.outputs.SemVer2 }}
AssemblyVersion:
value: ${{ jobs.get-version.outputs.AssemblyVersion }}
AssemblyFileVersion:
value: ${{ jobs.get-version.outputs.AssemblyFileVersion }}
AssemblyInformationalVersion:
value: ${{ jobs.get-version.outputs.AssemblyInformationalVersion }}
workflow_dispatch:
jobs:
get-version:
name: Get version information
runs-on: ubuntu-latest
outputs:
SemVer2: ${{ steps.nbgv.outputs.SemVer2 }}
AssemblyVersion: ${{ steps.nbgv.outputs.AssemblyVersion }}
AssemblyFileVersion: ${{ steps.nbgv.outputs.AssemblyFileVersion }}
AssemblyInformationalVersion: ${{ steps.nbgv.outputs.AssemblyInformationalVersion }}
steps:
- name: Setup .NET SDK
uses: actions/setup-dotnet@v5
with:
dotnet-version: "10"
- name: Checkout
uses: actions/checkout@v6
with:
fetch-depth: 0
- name: Run Nerdbank.GitVersioning tool
id: nbgv
uses: dotnet/nbgv@master