Improve cache service availability determination and implement conditional error logging
context.runAttempt
@actions/core