File tree Expand file tree Collapse file tree 3 files changed +20
-6
lines changed
Expand file tree Collapse file tree 3 files changed +20
-6
lines changed Original file line number Diff line number Diff line change 1- name : CI on Develop branch
1+ name : CI on Develop
22on :
33 push :
44 branches : [ develop ]
99 runs-on : ubuntu-latest
1010 steps :
1111 - uses : actions/checkout@v4
12- - name : Create new tag
12+ - name : Create and Push new tag
1313 shell : pwsh
1414 run : |
1515 . ./Scripts/VersionManager.ps1
16- New-Tag -Branch "develop"
17- - name : Push tags
18- run : |
19- git push --tags
16+ New-Tag -Branch "develop"
Original file line number Diff line number Diff line change 1+ name : CI on Master
2+ on :
3+ push :
4+ branches : [ master ]
5+ workflow_dispatch :
6+
7+ jobs :
8+ create-new-tag :
9+ runs-on : ubuntu-latest
10+ steps :
11+ - uses : actions/checkout@v4
12+ - name : Create and Push new tag
13+ shell : pwsh
14+ run : |
15+ . ./Scripts/VersionManager.ps1
16+ New-Tag -Branch "master"
Original file line number Diff line number Diff line change @@ -31,6 +31,7 @@ function New-Tag
3131 $tag = " v$version .$prefix$patch "
3232
3333 Invoke-Expression " git tag $tag "
34+ Invoke-Expression " git push origin $tag "
3435
3536 return $tag
3637}
You can’t perform that action at this time.
0 commit comments