File tree Expand file tree Collapse file tree 1 file changed +20
-8
lines changed Expand file tree Collapse file tree 1 file changed +20
-8
lines changed Original file line number Diff line number Diff line change 11name : Publish Extension
22on :
3+ pull_request :
4+ types : [closed]
35 workflow_dispatch :
46
57env :
1416 runs-on : ubuntu-latest
1517 permissions :
1618 contents : write # Required for pushing tags.
19+ if : >
20+ ( github.event_name == 'pull_request' &&
21+ github.event.pull_request.base.ref == 'main' &&
22+ contains(github.event.pull_request.title, 'Changeset version bump') ) ||
23+ github.event_name == 'workflow_dispatch'
1724 steps :
1825 - name : Checkout code
1926 uses : actions/checkout@v4
@@ -103,6 +110,11 @@ jobs:
103110 publish-jetbrains :
104111 needs : publish-extension
105112 runs-on : ubuntu-latest
113+ if : >
114+ ( github.event_name == 'pull_request' &&
115+ github.event.pull_request.base.ref == 'main' &&
116+ contains(github.event.pull_request.title, 'Changeset version bump') ) ||
117+ github.event_name == 'workflow_dispatch'
106118 steps :
107119 - name : Checkout code
108120 uses : actions/checkout@v4
@@ -165,11 +177,11 @@ jobs:
165177 path : jetbrains/plugin/build/distributions/${{ env.BUNDLE_NAME }}
166178 - name : JetBrains Marketplace Publisher
167179 run : |
168- curl \
169- -X POST \
170- -H "Authorization: Bearer ${{ secrets.JETBRAINS_MARKETPLACE_TOKEN }}" \
171- -F "file=@jetbrains/plugin/build/distributions/${{ env.BUNDLE_NAME }}" \
172- -F "pluginId=28350" \
173- -F "channel=stable" \
174- -F "isHidden=false" \
175- https://plugins.jetbrains.com/plugin/uploadPlugin
180+ curl \
181+ -X POST \
182+ -H "Authorization: Bearer ${{ secrets.JETBRAINS_MARKETPLACE_TOKEN }}" \
183+ -F "file=@jetbrains/plugin/build/distributions/${{ env.BUNDLE_NAME }}" \
184+ -F "pluginId=28350" \
185+ -F "channel=stable" \
186+ -F "isHidden=false" \
187+ https://plugins.jetbrains.com/plugin/uploadPlugin
You can’t perform that action at this time.
0 commit comments