Skip to content

Commit

Permalink
read input always as string
Browse files Browse the repository at this point in the history
  • Loading branch information
FabianLars committed Nov 25, 2024
1 parent 1c906f8 commit 2a2f2a8
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
2 changes: 1 addition & 1 deletion dist/index.js

Large diffs are not rendered by default.

10 changes: 6 additions & 4 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,12 +53,14 @@ async function run(): Promise<void> {
core.getInput('updaterJsonPreferNsis')?.toLowerCase() === 'true';

// mobile
const mobile = core.getBooleanInput('mobile');
const mobilestr = core.getInput('mobile').toLowerCase();
const mobile = core.getInput('mobile').toLowerCase();
// android should work on all runners but for `mobile: true` we only enable it for ubuntu runners. `mobile: android` enables it for all runners.
const android =
(process.platform === 'linux' && mobile) || mobilestr === 'android';
(process.platform === 'linux' && mobile === 'true') ||
mobile === 'android';
// iOS only works on macOS and therefore can be enabled the same with both `true` and `ios`
const ios =
process.platform === 'darwin' && (mobile || mobilestr === 'ios');
process.platform === 'darwin' && (mobile === 'true' || mobile === 'ios');

// If releaseId is set we'll use this to upload the assets to.
// If tagName is set we also require releaseName to create a new release.
Expand Down

0 comments on commit 2a2f2a8

Please sign in to comment.