forked from AlienDwarf/open-meteo-dotnet
-
Notifications
You must be signed in to change notification settings - Fork 0
50 lines (43 loc) · 981 Bytes
/
determine_version.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
on:
pull_request:
branches:
- master
- develop
types:
- closed
paths:
- '**/*.cs'
- '**/*.csproj'
push:
branches:
- master
- develop
- '*'
paths:
- '**/*.cs'
- '**/*.csproj'
tags:
- "v*"
env:
GIT_BRANCH: 'master'
jobs:
determine:
#if: github.event.pull_request.merged == true # Only create a new tag when a PR is merged
runs-on: ubuntu-latest
steps:
- name: Install GitVersion
uses: gittools/actions/gitversion/[email protected]
with:
versionSpec: '5.x'
- name: Check out Code
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Determine Version
id: gitversion
uses: gittools/actions/gitversion/[email protected]
with:
useConfigFile: true
configFilePath: ./.github/gitversion.yml
- name: Print Version
run: echo ${{ steps.gitversion.outputs.FullSemVer }}