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 2626 outputs :
2727 name : ${{ steps.set-version.outputs.name }}
2828 version : ${{ steps.set-version.outputs.version }}
29+ taggedbranch : ${{ steps.find-branch.outputs.taggedbranch }}
2930 steps :
3031 - uses : actions/checkout@v2
3132 - 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
3241 - name : Set an output
3342 id : set-version
3443 if : runner.os == 'Windows'
@@ -100,22 +109,8 @@ jobs:
100109 asset_path : ${{ needs.build.outputs.name }}.vsix
101110 asset_name : ${{ needs.build.outputs.name }}.vsix
102111 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
117112 publish :
118- needs : get_tagged_branch
113+ needs : build
119114 if : github.event_name == 'release' && needs.find-branch.outputs.taggedbranch == 'master'
120115 runs-on : windows-latest
121116 steps :
Original file line number Diff line number Diff line change 2626 outputs :
2727 name : ${{ steps.set-version.outputs.name }}
2828 version : ${{ steps.set-version.outputs.version }}
29+ taggedbranch : ${{ steps.find-branch.outputs.taggedbranch }}
2930 steps :
3031 - uses : actions/checkout@v2
3132 - 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
3241 - name : Set an output
3342 id : set-version
3443 if : runner.os == 'Windows'
@@ -102,22 +111,8 @@ jobs:
102111 asset_path : ${{ needs.build.outputs.name }}.vsix
103112 asset_name : ${{ needs.build.outputs.name }}.vsix
104113 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
119114 publish :
120- needs : get_tagged_branch
115+ needs : build
121116 if : github.event_name == 'release' && needs.find-branch.outputs.taggedbranch == 'prerelease'
122117 runs-on : windows-latest
123118 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)
22* Update README.
33* Automate pre-release publication to Marketplace.
44
Original file line number Diff line number Diff line change 11{
22 "name" : " servermanager" ,
33 "displayName" : " InterSystems Server Manager" ,
4- "version" : " 3.1.2022012603 " ,
4+ "version" : " 3.1.2022012604 " ,
55 "preview" : true ,
66 "publisher" : " intersystems-community" ,
77 "description" : " Define connections to InterSystems servers. Browse and manage those servers." ,
You can’t perform that action at this time.
0 commit comments