Skip to content

Commit

Permalink
update GHA workflow file
Browse files Browse the repository at this point in the history
  • Loading branch information
fryderykhuang committed Feb 2, 2024
1 parent dd2c7c3 commit 6b29e40
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ defaults:
shell: pwsh

on:
workflow_dispatch:
push:
branches:
- 'main'
Expand Down Expand Up @@ -90,14 +91,14 @@ jobs:
src:
- 'src/NullGC.Analyzer*/**'
- name: Download artifacts
if: ${{ contains(github.event.head_commit.message, '[force publish vsix]') || steps.changes.outputs.src == 'true' }}
if: ${{ github.event == 'workflow_dispatch' || contains(github.event.head_commit.message, '[force publish vsix]') || steps.changes.outputs.src == 'true' }}
uses: actions/download-artifact@v4
with:
name: vsix
- name: Dir
run: ls
- name: Publish vsix to marketplace
if: ${{ contains(github.event.head_commit.message, '[force publish vsix]') || steps.changes.outputs.src == 'true' }}
if: ${{ github.event == 'workflow_dispatch' || contains(github.event.head_commit.message, '[force publish vsix]') || steps.changes.outputs.src == 'true' }}
uses: cezarypiatek/[email protected]
with:
extension-file: ./NullGC.Analyzer.Vsix.vsix
Expand Down

0 comments on commit 6b29e40

Please sign in to comment.