-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
33 lines (32 loc) · 1.37 KB
/
git-version.yaml
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
name: Check Git Version
on:
workflow_dispatch:
jobs:
git-version:
runs-on: windows-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Check Git Semantic Version
id: gitversion
uses: PaulHatch/semantic-version@v5.3.0
with:
tag_prefix: ""
- name: Output Version Info
run: |
echo "major: ${{ steps.gitversion.outputs.major }}"
echo "minor: ${{ steps.gitversion.outputs.minor }}"
echo "patch: ${{ steps.gitversion.outputs.patch }}"
echo "increment: ${{ steps.gitversion.outputs.increment }}"
echo "version_type: ${{ steps.gitversion.outputs.version_type }}"
echo "version: ${{ steps.gitversion.outputs.version }}"
echo "version_tag: ${{ steps.gitversion.outputs.version_tag }}"
echo "changed: ${{ steps.gitversion.outputs.changed }}"
echo "is_tagged: ${{ steps.gitversion.outputs.is_tagged }}"
echo "authors: ${{ steps.gitversion.outputs.authors }}"
echo "current_commit: ${{ steps.gitversion.outputs.current_commit }}"
echo "previous_commit: ${{ steps.gitversion.outputs.previous_commit }}"
echo "previous_version: ${{ steps.gitversion.outputs.previous_version }}"
echo "debug_output: ${{ steps.gitversion.outputs.debug_output }}"