Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 12 additions & 4 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -239,8 +239,12 @@ jobs:
local i output rc wait
for (( i=1; i<=attempts; i++ )); do
echo "::group::vsce publish attempt $i/$attempts (${{ matrix.target }})"
output=$("$@" 2>&1)
rc=$?
# The if/else is load-bearing: GitHub runs `bash -e`, and a
# failed command substitution `output=$(cmd)` under set -e
# terminates the script *before* the echo below can run, so
# vsce/ovsx errors get swallowed silently. The if-form is
# explicitly handled by set -e and lets both branches set rc.
if output=$("$@" 2>&1); then rc=0; else rc=$?; fi
echo "$output"
echo "::endgroup::"

Expand Down Expand Up @@ -302,8 +306,12 @@ jobs:
local i output rc wait
for (( i=1; i<=attempts; i++ )); do
echo "::group::ovsx publish attempt $i/$attempts (${{ matrix.target }})"
output=$("$@" 2>&1)
rc=$?
# The if/else is load-bearing: GitHub runs `bash -e`, and a
# failed command substitution `output=$(cmd)` under set -e
# terminates the script *before* the echo below can run, so
# vsce/ovsx errors get swallowed silently. The if-form is
# explicitly handled by set -e and lets both branches set rc.
if output=$("$@" 2>&1); then rc=0; else rc=$?; fi
echo "$output"
echo "::endgroup::"

Expand Down
Loading