File tree 1 file changed +7
-7
lines changed
1 file changed +7
-7
lines changed Original file line number Diff line number Diff line change 1
- name : Create git tag
1
+ name : Main Branch CI
2
2
on :
3
3
push :
4
4
branches :
@@ -10,21 +10,21 @@ jobs:
10
10
contents : write
11
11
runs-on : ubuntu-latest
12
12
steps :
13
- - uses : actions/checkout@v2
13
+ - uses : actions/checkout@v4
14
14
with :
15
15
fetch-depth : 0
16
16
- name : Install GitVersion
17
- uses : gittools/actions/gitversion/setup@v0.9.7
17
+ uses : gittools/actions/gitversion/setup@v0.11.0
18
18
with :
19
19
versionSpec : ' 5.x'
20
20
- name : Determine Version
21
- uses : gittools/actions/gitversion/execute@v0.9.7
21
+ uses : gittools/actions/gitversion/execute@v0.11.0
22
22
with :
23
23
useConfigFile : true
24
24
- name : Create git tag
25
25
run : |
26
- git tag $GITVERSION_MAJORMINORPATCH
26
+ git tag ${{ env.GitVersion_MajorMinorPatch }}
27
27
if : github.ref == 'refs/heads/main'
28
28
- 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'
You can’t perform that action at this time.
0 commit comments