File tree Expand file tree Collapse file tree 4 files changed +22
-32
lines changed Expand file tree Collapse file tree 4 files changed +22
-32
lines changed Original file line number Diff line number Diff line change 26
26
outputs :
27
27
name : ${{ steps.set-version.outputs.name }}
28
28
version : ${{ steps.set-version.outputs.version }}
29
+ taggedbranch : ${{ steps.find-branch.outputs.taggedbranch }}
29
30
steps :
30
31
- uses : actions/checkout@v2
31
32
- run : git fetch --depth=1 origin +refs/tags/*:refs/tags/*
33
+ - name : Find which branch the release tag points at
34
+ id : find-branch
35
+ if : github.event_name == 'release' && runner.os == 'Windows'
36
+ shell : bash
37
+ run : |
38
+ set -x
39
+ TAGGEDBRANCH=$(git for-each-ref --points-at=${{github.sha}} --format='%(refname:lstrip=2)' refs/heads/)
40
+ echo ::set-output name=taggedbranch::$TAGGEDBRANCH
32
41
- name : Set an output
33
42
id : set-version
34
43
if : runner.os == 'Windows'
@@ -100,22 +109,8 @@ jobs:
100
109
asset_path : ${{ needs.build.outputs.name }}.vsix
101
110
asset_name : ${{ needs.build.outputs.name }}.vsix
102
111
asset_content_type : application/zip
103
- get_tagged_branch :
104
- if : github.event_name == 'release'
105
- runs-on : windows-latest
106
- needs : build
107
- outputs :
108
- taggedbranch : ${{ steps.find-branch.outputs.taggedbranch }}
109
- steps :
110
- - name : Find which branch the release tag points at
111
- id : find-branch
112
- shell : bash
113
- run : |
114
- set -x
115
- TAGGEDBRANCH=$(git for-each-ref --points-at=${{github.sha}} --format='%(refname:lstrip=2)' refs/heads/)
116
- echo ::set-output name=taggedbranch::$TAGGEDBRANCH
117
112
publish :
118
- needs : get_tagged_branch
113
+ needs : build
119
114
if : github.event_name == 'release' && needs.find-branch.outputs.taggedbranch == 'master'
120
115
runs-on : windows-latest
121
116
steps :
Original file line number Diff line number Diff line change 26
26
outputs :
27
27
name : ${{ steps.set-version.outputs.name }}
28
28
version : ${{ steps.set-version.outputs.version }}
29
+ taggedbranch : ${{ steps.find-branch.outputs.taggedbranch }}
29
30
steps :
30
31
- uses : actions/checkout@v2
31
32
- run : git fetch --depth=1 origin +refs/tags/*:refs/tags/*
33
+ - name : Find which branch the release tag points at
34
+ id : find-branch
35
+ if : github.event_name == 'release' && runner.os == 'Windows'
36
+ shell : bash
37
+ run : |
38
+ set -x
39
+ TAGGEDBRANCH=$(git for-each-ref --points-at=${{github.sha}} --format='%(refname:lstrip=2)' refs/heads/)
40
+ echo ::set-output name=taggedbranch::$TAGGEDBRANCH
32
41
- name : Set an output
33
42
id : set-version
34
43
if : runner.os == 'Windows'
@@ -102,22 +111,8 @@ jobs:
102
111
asset_path : ${{ needs.build.outputs.name }}.vsix
103
112
asset_name : ${{ needs.build.outputs.name }}.vsix
104
113
asset_content_type : application/zip
105
- get_tagged_branch :
106
- if : github.event_name == 'release'
107
- runs-on : windows-latest
108
- needs : build
109
- outputs :
110
- taggedbranch : ${{ steps.find-branch.outputs.taggedbranch }}
111
- steps :
112
- - name : Find which branch the release tag points at
113
- id : find-branch
114
- shell : bash
115
- run : |
116
- set -x
117
- TAGGEDBRANCH=$(git for-each-ref --points-at=${{github.sha}} --format='%(refname:lstrip=2)' refs/heads/)
118
- echo ::set-output name=taggedbranch::$TAGGEDBRANCH
119
114
publish :
120
- needs : get_tagged_branch
115
+ needs : build
121
116
if : github.event_name == 'release' && needs.find-branch.outputs.taggedbranch == 'prerelease'
122
117
runs-on : windows-latest
123
118
steps :
Original file line number Diff line number Diff line change 1
- ## 3.1.2022012603 (26-Jan-2022 pre-release)
1
+ ## 3.1.2022012604 (26-Jan-2022 pre-release)
2
2
* Update README.
3
3
* Automate pre-release publication to Marketplace.
4
4
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " servermanager" ,
3
3
"displayName" : " InterSystems Server Manager" ,
4
- "version" : " 3.1.2022012603 " ,
4
+ "version" : " 3.1.2022012604 " ,
5
5
"preview" : true ,
6
6
"publisher" : " intersystems-community" ,
7
7
"description" : " Define connections to InterSystems servers. Browse and manage those servers." ,
You can’t perform that action at this time.
0 commit comments