diff --git a/dist/index.js b/dist/index.js index 1d586cd..a0a9324 100644 --- a/dist/index.js +++ b/dist/index.js @@ -2183,7 +2183,7 @@ function run() { core.debug("Railway CLI Path: " + resolvedPath); } }); - yield exec.exec("railway", ["version"]); + yield exec.exec("railway", ["--version"]); } catch (error) { core.setFailed(error.message); diff --git a/src/main.ts b/src/main.ts index 4a3b6c4..f879d3b 100644 --- a/src/main.ts +++ b/src/main.ts @@ -93,7 +93,7 @@ async function run(): Promise { core.debug("Railway CLI Path: " + resolvedPath); } }); - await exec.exec("railway", ["version"]); + await exec.exec("railway", ["--version"]); } catch (error) { core.setFailed(error.message); }