Skip to content

Commit 2ce721c

Browse files
Only run publish workflow if CI workflow was successful on master
1 parent 8f8f440 commit 2ce721c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.github/workflows/publish-extension.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,12 @@ name: "Publish to Marketplace"
33
on:
44
workflow_run:
55
workflows: ["CI"]
6-
types:
7-
- completed
6+
types: [completed]
7+
branches: [master]
88

99
jobs:
1010
cd:
11-
if: contains( github.ref, 'master')
11+
if: ${{ github.event.workflow_run.conclusion == 'success' }}
1212
runs-on: ubuntu-latest
1313
permissions:
1414
contents: write

0 commit comments

Comments
 (0)