Skip to content

Commit

Permalink
Fix runner.os and runner.arch values
Browse files Browse the repository at this point in the history
  • Loading branch information
socheatsok78 committed Jun 3, 2024
1 parent 5b6a214 commit cc63cfd
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
6 changes: 3 additions & 3 deletions dist/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/index.js.map

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ const tc = require('@actions/tool-cache');
const { compareVersions } = require('compare-versions');

const runner = {
os: String(process.env['RUNNER_OS'] ?? 'linux').toLowerCase(),
arch: String(process.env['RUNNER_ARCH'] ?? 'x64').toLowerCase(),
os: process.env['RUNNER_OS'] || 'Linux',
arch: process.env['RUNNER_ARCH'] || 'x64',
}

const parseStrictInput= (strict = "false") => {
Expand All @@ -24,7 +24,7 @@ async function main() {
const inputs = {
pubspec: core.getInput('pubspec') || './pubspec.yaml',
channel: core.getInput('channel') || 'any',
platform: core.getInput('platform') || runner.os,
platform: String(core.getInput('platform') || runner.os).toLowerCase(),
strict: parseStrictInput(core.getInput('strict')),
}

Expand Down

0 comments on commit cc63cfd

Please sign in to comment.