-
Notifications
You must be signed in to change notification settings - Fork 0
38 lines (30 loc) · 922 Bytes
/
git_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
# Copyright (c) Stéphane ANDRE.
# Licensed under the MIT license.
name: Check Git Version
on:
workflow_dispatch:
jobs:
# GitVersion
gitversion:
runs-on: windows-latest
outputs:
SemVer: ${{ steps.gitversion.outputs.SemVer }}
steps:
# Checkout
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
# Install Git version
- name: Install GitVersion
uses: gittools/actions/gitversion/setup@v1.1.1
with:
versionSpec: '5.x'
# Check Git version
- name: Check Git Semantic Version
id: gitversion
uses: gittools/actions/gitversion/execute@v1.1.1 # https://github.com/GitTools/actions/blob/main/docs/examples/github/gitversion/execute/usage-examples.md
with:
useConfigFile: true
configFilePath: .\.github\GitVersion.yml
disableNormalization: true