mirror of
https://code.forgejo.org/actions/setup-node.git
synced 2025-05-19 21:04:45 +00:00
Rename node-arch to architecture
This commit is contained in:
parent
aabe026707
commit
5984462aaa
5 changed files with 12 additions and 12 deletions
|
@ -16,13 +16,13 @@ export async function run() {
|
|||
version = core.getInput('version');
|
||||
}
|
||||
|
||||
let arch = core.getInput('node-arch');
|
||||
let arch = core.getInput('architecture');
|
||||
|
||||
// if node-arch supplied but node-version is not
|
||||
// if architecture supplied but node-version is not
|
||||
// if we don't throw a warning, the already installed x64 node will be used which is not probably what user meant.
|
||||
if (arch && !version) {
|
||||
core.warning(
|
||||
'`node-arch` is provided but `node-version` is missing. This results in using an already installed x64 node which is not probably what you meant. To fix this, provide `node-arch` in combination with `node-version`'
|
||||
'`architecture` is provided but `node-version` is missing. This results in using an already installed x64 node which is not probably what you meant. To fix this, provide `architecture` in combination with `node-version`'
|
||||
);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue