Skip to content

Commit f31bca9

Browse files
authored
Release v5.9 preparation - set "GitVersion" explicitely (#9529)
1 parent 89890e5 commit f31bca9

File tree

2 files changed

+12
-10
lines changed

2 files changed

+12
-10
lines changed

.github/workflows/deployment-arm64.yml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -49,13 +49,14 @@ jobs:
4949
uses: actions/checkout@v3
5050
with:
5151
fetch-depth: 0
52-
- name: Install GitVersion
53-
uses: gittools/actions/gitversion/[email protected]
54-
with:
55-
versionSpec: "5.x"
5652
- name: Run GitVersion
5753
id: gitversion
58-
uses: gittools/actions/gitversion/[email protected]
54+
shell: bash
55+
run: |
56+
echo "AssemblySemVer=5.9.`git rev-list v5.8..HEAD --count`" >> $GITHUB_OUTPUT
57+
echo "InformationalVersion=5.9--`git log -1 --pretty='format:%cd' --date=format:'%Y-%m-%d'`--`git log -1 --format=%h`" >> $GITHUB_OUTPUT
58+
echo "Major=5" >> $GITHUB_OUTPUT
59+
echo "Minor=9" >> $GITHUB_OUTPUT
5960
- name: Set up JDK
6061
uses: actions/setup-java@v3
6162
with:

.github/workflows/deployment.yml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -65,13 +65,14 @@ jobs:
6565
uses: actions/checkout@v3
6666
with:
6767
fetch-depth: 0
68-
- name: Install GitVersion
69-
uses: gittools/actions/gitversion/[email protected]
70-
with:
71-
versionSpec: "5.x"
7268
- name: Run GitVersion
7369
id: gitversion
74-
uses: gittools/actions/gitversion/[email protected]
70+
shell: bash
71+
run: |
72+
echo "AssemblySemVer=5.9.`git rev-list v5.8..HEAD --count`" >> $GITHUB_OUTPUT
73+
echo "InformationalVersion=5.9--`git log -1 --pretty='format:%cd' --date=format:'%Y-%m-%d'`--`git log -1 --format=%h`" >> $GITHUB_OUTPUT
74+
echo "Major=5" >> $GITHUB_OUTPUT
75+
echo "Minor=9" >> $GITHUB_OUTPUT
7576
- name: Set up JDK
7677
uses: actions/setup-java@v3
7778
with:

0 commit comments

Comments
 (0)