Skip to content

Commit 0c253a6

Browse files
chore: fix release workflow (#55)
1 parent 062c624 commit 0c253a6

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

.github/workflows/packages_release.yaml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,8 +67,13 @@ jobs:
6767
6868
# Use jq to check if the specific package is in the array
6969
# Ensure the JSON is valid by echoing it into jq
70+
71+
set +e # Disable immediate exit on non-zero return
7072
echo "$packages" | jq -e '[.[] | select(.name == "@powersync/service-image")] | length > 0' > /dev/null
71-
if [ $? -eq 0 ]; then
73+
jq_exit_code=$?
74+
set -e # Re-enable immediate exit
75+
76+
if [ $jq_exit_code -eq 0 ]; then
7277
echo "release_created=true" >> $GITHUB_OUTPUT
7378
else
7479
echo "release_created=false" >> $GITHUB_OUTPUT

0 commit comments

Comments
 (0)