You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
PLIST=$(find "$WORK" -path '*.tableplugin/Contents/Info.plist' | head -1)
258
-
if [ -z "$PLIST" ]; then
259
-
echo "::error::Could not find Info.plist in the built ${BUNDLE_NAME} bundle."
260
-
exit 1
261
-
fi
262
-
ACTUAL=$(plutil -extract TableProPluginKitVersion raw "$PLIST")
263
-
if [ "$ACTUAL" != "$EXPECTED" ]; then
264
-
echo "::error::${BUNDLE_NAME} was built for PluginKit $ACTUAL but this release is labeled PluginKit $EXPECTED. Refusing to publish a mislabeled binary. Re-release from a commit whose plugin Info.plist matches the target PluginKit version."
265
-
exit 1
266
-
fi
267
-
echo "Verified ${BUNDLE_NAME}: built PluginKit $ACTUAL matches the release label."
PLIST=$(find "$WORK" -path '*.tableplugin/Contents/Info.plist' | head -1)
259
+
if [ -z "$PLIST" ]; then
260
+
echo "::error::Could not find Info.plist in the built ${BUNDLE_NAME}-${ARCH} bundle."
261
+
exit 1
262
+
fi
263
+
ACTUAL=$(plutil -extract TableProPluginKitVersion raw "$PLIST")
264
+
if [ "$ACTUAL" != "$EXPECTED" ]; then
265
+
echo "::error::${BUNDLE_NAME}-${ARCH} was built for PluginKit $ACTUAL but this release is labeled PluginKit $EXPECTED. Refusing to publish a mislabeled binary. Re-release from a commit whose plugin Info.plist matches the target PluginKit version."
266
+
exit 1
267
+
fi
268
+
echo "Verified ${BUNDLE_NAME}-${ARCH}: built PluginKit $ACTUAL matches the release label."
269
+
done
268
270
269
271
- name: Read checksums
270
272
id: sha
@@ -308,6 +310,13 @@ jobs:
308
310
- ARM64: \`$ARM64_SHA\`
309
311
- x86_64: \`$X86_SHA\`"
310
312
313
+
EXISTING_PKV=$(gh release view "$TAG" --json body --jq .body 2>/dev/null \
if [ -n "$EXISTING_PKV" ] && [ "$EXISTING_PKV" != "$PKV" ]; then
316
+
echo "::error::Release $TAG already exists for PluginKit $EXISTING_PKV. Refusing to overwrite it with PluginKit $PKV; publish the new ABI under a new plugin version."
0 commit comments