Skip to content

Commit d59d24b

Browse files
Run publish action if CI completes and branch is master
1 parent c3b935f commit d59d24b

File tree

2 files changed

+6
-7
lines changed

2 files changed

+6
-7
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Node.js CI
1+
name: CI
22

33
on:
44
push:

.github/workflows/publish-extension.yml

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,16 @@
1-
name: "Publish to VS Code Marketplace"
1+
name: "Publish to Marketplace"
22

33
on:
4-
push:
5-
branches:
6-
- master
74
workflow_run:
8-
workflows: ["Node.js CI"]
5+
workflows: ["CI"]
96
types:
107
- completed
118

12-
139
jobs:
1410
cd:
11+
if: >
12+
${{ github.event.workflow_run.conclusion == 'success' &&
13+
github.event.workflow_run.head_branch == 'master' }}
1514
runs-on: ubuntu-latest
1615
permissions:
1716
contents: write

0 commit comments

Comments
 (0)