-
Notifications
You must be signed in to change notification settings - Fork 1.7k
exec doesn't resolve Windows .cmd/.bat files from the PATH #218
Copy link
Copy link
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
Describe the bug
exec.exec('npm --version') does not work on Windows.
To Reproduce
name: CI
on: [push]
jobs:
build:
runs-on: windows-latest
steps:
- shell: cmd
run: |
echo Verify npm is in the PATH:
where npm
echo ----------------------------------------
echo Invoking "npm --version" works on the command line:
call npm --version
echo ----------------------------------------
echo Installing @actions/exec
call npm install @actions/exec ./
echo ----------------------------------------
echo Invoking "npm --version" using @actions/exec fails:
node -e "var exec = require('@actions/exec'); exec.exec('npm --version');"Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working