Skip to content

Commit a06ae47

Browse files
authored
updated version for workflow steps
1 parent c8f21d6 commit a06ae47

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

.github/workflows/create-tag.yaml

+7-7
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Create git tag
1+
name: Main Branch CI
22
on:
33
push:
44
branches:
@@ -10,21 +10,21 @@ jobs:
1010
contents: write
1111
runs-on: ubuntu-latest
1212
steps:
13-
- uses: actions/checkout@v2
13+
- uses: actions/checkout@v4
1414
with:
1515
fetch-depth: 0
1616
- name: Install GitVersion
17-
uses: gittools/actions/gitversion/setup@v0.9.7
17+
uses: gittools/actions/gitversion/setup@v0.11.0
1818
with:
1919
versionSpec: '5.x'
2020
- name: Determine Version
21-
uses: gittools/actions/gitversion/execute@v0.9.7
21+
uses: gittools/actions/gitversion/execute@v0.11.0
2222
with:
2323
useConfigFile: true
2424
- name: Create git tag
2525
run: |
26-
git tag $GITVERSION_MAJORMINORPATCH
26+
git tag ${{ env.GitVersion_MajorMinorPatch }}
2727
if: github.ref == 'refs/heads/main'
2828
- name: Push git tag
29-
run: git push origin $GITVERSION_MAJORMINORPATCH
30-
if: github.ref == 'refs/heads/main'
29+
run: git push origin ${{ env.GitVersion_MajorMinorPatch }}
30+
if: github.ref == 'refs/heads/main'

0 commit comments

Comments
 (0)