You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: dist/index.js
+5
Original file line number
Diff line number
Diff line change
@@ -4645,6 +4645,11 @@ function run() {
4645
4645
version = core.getInput('version');
4646
4646
}
4647
4647
let arch = core.getInput('node-arch');
4648
+
// if node-arch supplied but node-version is not
4649
+
// if we don't throw a warning, the already installed x64 node will be used which is not probably what user meant.
4650
+
if (arch && !version) {
4651
+
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`');
Copy file name to clipboardExpand all lines: src/main.ts
+9
Original file line number
Diff line number
Diff line change
@@ -17,6 +17,15 @@ export async function run() {
17
17
}
18
18
19
19
letarch=core.getInput('node-arch');
20
+
21
+
// if node-arch supplied but node-version is not
22
+
// if we don't throw a warning, the already installed x64 node will be used which is not probably what user meant.
23
+
if(arch&&!version){
24
+
core.warning(
25
+
'`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`'
0 commit comments