@@ -25,24 +25,25 @@ jobs:
25
25
build_app :
26
26
runs-on : ubuntu-latest
27
27
outputs :
28
- SemVer : ${{ steps.gitversion.outputs.SemVer }}
29
- FullSemVer : ${{ steps.gitversion.outputs.FullSemVer }}
28
+ semVer : ${{ steps.gitversion.outputs.semVer }}
29
+ fullSemVer : ${{ steps.gitversion.outputs.fullSemVer }}
30
30
31
31
steps :
32
32
- uses : actions/checkout@v3
33
33
with :
34
34
fetch-depth : 0
35
35
36
- - name : gitversion
37
- shell : pwsh
36
+ - name : gitversion (1 of 2)
37
+ uses : gittools/actions/gitversion/setup@v0
38
+ with :
39
+ versionSpec : 5.x
40
+
41
+ - name : gitversion (2 of 2)
38
42
id : gitversion
39
- run : |
40
- dotnet tool update -g GitVersion.Tool
41
- $GitVersion = dotnet-gitversion ${{ github.workspace }} /nofetch | ConvertFrom-Json
42
- Write-Host "SemVer=$($GitVersion.SemVer)"
43
- echo "SemVer=$($GitVersion.SemVer)" >> $env:GITHUB_OUTPUT
44
- Write-Host "FullSemVer=$($GitVersion.FullSemVer)"
45
- echo "FullSemVer=$($GitVersion.FullSemVer)" >> $env:GITHUB_OUTPUT
43
+ uses : gittools/actions/gitversion/execute@v0
44
+ with :
45
+ useConfigFile : true
46
+ additionalArguments : /nofetch
46
47
47
48
- name : cargo fetch
48
49
run : cargo fetch
@@ -102,7 +103,7 @@ jobs:
102
103
REGISTRY : ghcr.io
103
104
# REPOSITORY: Note: set dynamically, i.e. github.repository_owner+IMAGE_NAME
104
105
GIT_REPO : ${{ github.repository }}
105
- GIT_TAG : ${{ needs.build_app.outputs.SemVer }}
106
+ GIT_TAG : ${{ needs.build_app.outputs.semVer }}
106
107
GIT_BRANCH : ${{ github.ref }}
107
108
GIT_COMMIT : ${{ github.sha }}
108
109
@@ -174,7 +175,7 @@ jobs:
174
175
env :
175
176
REGISTRY : ghcr.io
176
177
# REPOSITORY: Note: set dynamically, i.e. github.repository_owner+IMAGE_NAME
177
- GIT_TAG : ${{ needs.build_app.outputs.SemVer }}
178
+ GIT_TAG : ${{ needs.build_app.outputs.semVer }}
178
179
HELM_EXPERIMENTAL_OCI : 1
179
180
HELM_VERSION_TO_INSTALL : 3.9.2 # Note: keep this version in sync inside the devcontainer
180
181
@@ -240,3 +241,5 @@ jobs:
240
241
needs : [build_app, build_image, push_chart]
241
242
if : github.ref == 'refs/heads/main'
242
243
uses : f2calv/gha-workflows/.github/workflows/gha-release-versioning.yml@v1
244
+ with :
245
+ tag-prefix : ' '
0 commit comments