Skip to content

Commit

Permalink
add logging for easier debugging
Browse files Browse the repository at this point in the history
  • Loading branch information
Jag96 committed Nov 16, 2021
1 parent e9b0c92 commit ed931d5
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ const {PLIST_PATH} = require('../../libs/nativeVersionUpdater');
const bundleVersion = execSync(`/usr/libexec/PlistBuddy -c "Print :CFBundleVersion" ${PLIST_PATH}`);
const shortBundleVersion = execSync(`/usr/libexec/PlistBuddy -c "Print :CFBundleShortVersionString" ${PLIST_PATH}`);

console.log(`Bundle Version: ${bundleVersion}`);
console.log(`Short Bundle Version: ${shortBundleVersion}`);
if (shortBundleVersion !== (bundleVersion.split('-') || [''])[0]) {
console.log('Bundle Versions do not match');
core.setOutput('BUNDLE_VERSIONS_MATCH', false);
Expand Down

0 comments on commit ed931d5

Please sign in to comment.