Skip to content

Commit 42ae8fb

Browse files
committed
fix action
1 parent 8d1b6a6 commit 42ae8fb

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

.github/workflows/create_release_and_publish.yaml

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,16 @@ jobs:
2323
steps:
2424
- uses: actions/checkout@v2
2525

26+
- name: Dump GITHUB context
27+
env:
28+
GITHUB: ${{ toJSON(github) }}
29+
run: echo "${GITHUB}"
30+
31+
- name: Dump input context
32+
env:
33+
INPUTS: ${{ toJSON(inputs) }}
34+
run: echo "${INPUTS}"
35+
2636
- name: Install npm
2737
run: npm install
2838

@@ -32,7 +42,7 @@ jobs:
3242
# we first publish to VSCode gallery
3343
# in case that version is already there, it would fail and also not overwrite the Github Release
3444
- name: Publish extension
35-
if: ${{ inputs.publish == 'true' }} || ${{ github.event_name == 'push' }}
45+
if: ${{ (inputs.publish == 'true') || (github.event_name == 'push') }}
3646
env:
3747
VSCE_PUBLISH_TOKEN: ${{ secrets.VSCE_PUBLISH_TOKEN }}
3848
run: vsce publish -p $VSCE_PUBLISH_TOKEN

0 commit comments

Comments
 (0)