Closed anthonydahanne closed 3 years ago
I think this is just not supported on GHES and you will not be able to use the caching feature. https://github.com/actions/cache/issues/505
... in which case, it would make sense for this action to skip the cache by default if it's running on GHE. I wonder if there's API to detect that.
closing pending anything further we can do.
hello @tetchel - thanks for the reply.
I wonder if there's API to detect that.
There seems to be, but it's pretty basic: https://github.com/actions/cache/blob/main/src/utils/actionUtils.ts#L5
closing pending anything further we can do.
okee makes sense, I see you updated the documentation per https://github.com/redhat-actions/openshift-tools-installer/commit/3d239aef6a6eca55daee7967034c4ce9804ee504 , so all is fine I guess.
thanks
it also won't crash anymore, it will just log a bunch of warnings.
good to know about that env var GITHUB_SERVER_URL
https://docs.github.com/en/actions/reference/environment-variables#default-environment-variables
I looked in the ${{ github }}
context and it wasn't there, I should have checked the env vars list too.
i opened #19 to improve this behaviour using that env var.
Version
redhat-actions/openshift-tools-installer@v1
Tested on Github Entreprise Server 3.0 (on premise Github)
Describe the bug
With any tools being installed, the installation will crash with
Error: Cache service responded with 404
Steps to reproduce, workflow links, screenshots
Using such a configuration:
will end up with such a crash:
Workaround
If you set the environment variable named CLI_INSTALLER_SKIP_CACHE to true, crahs won't occur (but cache won't be leveraged though...)