generated from actions/javascript-action
-
Notifications
You must be signed in to change notification settings - Fork 2
Closed
Description
I expected to read .swift-version
file when no options specified like belew
// in my steps
- uses: swiftwasm/setup-swiftwasm@v1
but .swift-version
was not used. because
Line 10 in 8e7c319
default: 'wasm-5.7.1-RELEASE' |
default swift-version
option exists and read it first.
Lines 48 to 59 in 8e7c319
const version = core.getInput('swift-version') || options.version; | |
if (version) { | |
core.debug(`Using version from input: ${version}`); | |
return version; | |
} | |
if (fs.existsSync(".swift-version")) { | |
const versionFile = fs.readFileSync('.swift-version', 'utf8').trim(); | |
if (versionFile !== "") { | |
core.debug(`Using version from .swift-version file: ${versionFile}`); | |
return versionFile; | |
} | |
} |
Metadata
Metadata
Assignees
Labels
No labels