Closed yogurtearl closed 1 year ago
Thanks @yogurtearl . This looks to be a duplicate of gradle/actions#33. Are you running actions on self-hosted or github-hosted runners? (GitHub hosted runners all seem to have the latest version of Gradle installed and on the PATH).
Yes, this happened when running on a self hosted runner where the machine image does not have gradle
installed, and on top of that inside a docker image that does not have gradle
installed.
OK, closing as a duplicate of gradle/actions#33
Update: Workaround at the bottom
This is happening with Gradle
8.2.1-bin
, but I think this stopped working with Gradle8.1.0
.This is happening with
v2.7.0
but have also observed something similar withv2.3.3
It may be related to newer versions of the gradle wrapper.
With config:
I am getting this error on the
main
branch:Similar to https://github.com/gradle/gradle-build-action/issues/814 but different error message.
If I add this:
then the error message changes to:
Update:
This (last line) seems to workaround the issue (used to work without this):
(you will need to swap
/home/.gradle
for whatever you$GRADLE_USER_HOME
is. )