diff --git a/.github/workflows/manual-publish.yml b/.github/workflows/manual-publish.yml index ed79d1ff..0808ef99 100644 --- a/.github/workflows/manual-publish.yml +++ b/.github/workflows/manual-publish.yml @@ -19,7 +19,8 @@ on: type: choice # Options are generated from `npm run gen:workflow` options: - - "." + - "none" + - "all" - extensions/arabic - extensions/australian-english - extensions/austrian-german @@ -81,7 +82,7 @@ jobs: - name: Choice env: - INPUT_CHOICE: ${{ (inputs.extension && format('["{0}"]', inputs.extension)) }} + INPUT_CHOICE: ${{ (inputs.extension && (inputs.extension != 'all') && format('["{0}"]', inputs.extension) || '') }} run: | echo INPUT_CHOICE=$INPUT_CHOICE >> $GITHUB_ENV @@ -102,6 +103,7 @@ jobs: with: ref: ${{ inputs.ref }} paths_released: ${{ needs.list_extensions.outputs.extension_list }} + if: ${{ inputs.extension != 'none' }} secrets: VSCE_TOKEN: ${{ secrets.VSCE_TOKEN }} OVSX_TOKEN: ${{ secrets.OVSX_TOKEN }} diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 9e98d6c4..65ae7170 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -73,6 +73,14 @@ jobs: if: ${{ env.PUB_FAIL_OVSX }} run: echo "::error title=OVSX::Failed to Publish $EXTENSION_NAME to Eclipse Open VSX." + - name: Report Results + uses: ./.github/actions/summary + with: + text: | + ## `${{ env.EXTENSION_NAME }}` + - VSCE Publish: ${{ env.PUB_FAIL_VSCE && 'failed' || 'success' }} + - OVSX Publish: ${{ env.PUB_FAIL_OVSX && 'failed' || 'success' }} + - name: Check Build if: ${{ env.PUB_FAIL_VSCE || env.PUB_FAIL_OVSX }} run: exit 1