Skip to content

Commit e65a1e6

Browse files
committed
fix: correct logic in package presence check
1 parent d665440 commit e65a1e6

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.github/workflows/check-and-upload-package.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,12 +71,13 @@ jobs:
7171
# Check if the latest release contains the unitypackage
7272
release_info=$(gh release view "$latest_release" --json assets)
7373
file_present=$(echo "$release_info" | jq '.assets[].name | select(test("PackageExporter_.*\\.unitypackage"))')
74+
7475
if [ -n "$file_present" ]; then
7576
echo "Unitypackage file found in the latest release."
7677
echo "file-present=1" >> "$GITHUB_OUTPUT"
7778
else
7879
echo "No Unitypackage found in the latest release."
79-
echo "file-present=0" >> "$GITHUB_OUTPUT"
80+
fi
8081
8182
upload-package:
8283
needs: check-package

0 commit comments

Comments
 (0)