Help
cancel
Showing results for 
Search instead for 
Did you mean: 
Copilot Lvl 2
Message 1 of 3

Gradlew commands not working

Solved! Go to Solution.

Im currently writing a library for my robotics team, and I want to use gradle as a way to automatically test the code.

 

I followed the directions on how to setup an action, and once I got gradle to properly work locally, I then wanted to get it to work on github.

 

Right now, Im getting this error:

/home/runner/work/_temp/deaebf63-2b6d-4c98-b6b6-8c262b8231f8.sh: line 1: ./gradlew: Permission denied
##[error]Process completed with exit code 126.

The link to the yml file is: https://github.com/robototes/2412RobotLibrary/blob/OroArmor-gradletest/.github/workflows/gradle.yml 

2 Replies
Highlighted
Solution
GitHub Partner
Message 2 of 3

Re: Gradlew commands not working

You can try to execute the following command before run gradle commands.

chmod +x ./gradlew

workaround.png

You also can reference this earlier reported ticket for the same error: https://github.com/actions/starter-workflows/issues/171

Highlighted
Copilot Lvl 2
Message 3 of 3

Re: Gradlew commands not working

Thank you! It worked perfectly!