Skip to content

Commit

Permalink
Run publish action if CI completes and branch is master
Browse files Browse the repository at this point in the history
  • Loading branch information
marclipovsky committed Oct 18, 2024
1 parent c3b935f commit d59d24b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Node.js CI
name: CI

on:
push:
Expand Down
11 changes: 5 additions & 6 deletions .github/workflows/publish-extension.yml
Original file line number Diff line number Diff line change
@@ -1,17 +1,16 @@
name: "Publish to VS Code Marketplace"
name: "Publish to Marketplace"

on:
push:
branches:
- master
workflow_run:
workflows: ["Node.js CI"]
workflows: ["CI"]
types:
- completed


jobs:
cd:
if: >
${{ github.event.workflow_run.conclusion == 'success' &&
github.event.workflow_run.head_branch == 'master' }}
runs-on: ubuntu-latest
permissions:
contents: write
Expand Down

0 comments on commit d59d24b

Please sign in to comment.