We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3c717b3 commit d00f0d8Copy full SHA for d00f0d8
1 file changed
.github/workflows/release.yml
@@ -100,18 +100,18 @@ jobs:
100
echo "$RESULT"
101
OUTPUT="$OUTPUT$RESULT"
102
103
- if [ $EXIT_CODE -eq 0 ]; then
+ if echo "$RESULT" | grep -qi "already exists"; then
104
+ echo "Package already exists, skipping..."
105
+ elif [ $EXIT_CODE -eq 0 ]; then
106
echo "Successfully published $package"
107
PUBLISHED=true
- elif echo "$RESULT" | grep -q "already exists"; then
- echo "Package already exists, skipping..."
108
else
109
echo "Failed to publish $package"
110
exit 1
111
fi
112
done
113
114
- if [ "$PUBLISHED" = true ] || echo "$OUTPUT" | grep -q "Your package was pushed"; then
+ if [ "$PUBLISHED" = true ]; then
115
echo "published=true" >> $GITHUB_OUTPUT
116
echo "At least one package was successfully published"
117
0 commit comments