From 00c5476d11b363d75c14e207a2d91729ced41bb7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?V=C3=ADt=20Stanislav?= Date: Mon, 19 Jul 2021 10:50:42 +0200 Subject: [PATCH] Add "see more" link to GHE-not-supported warning I lived for several months thinking that support for caching action on GHE is just a matter of time, because it's such an important thing to have. Only today, I discovered that originally it was not planned at all. And that people already created some workarounds. So I hope that linking the issue from the warning message will save other people from what happened to me :-) --- src/restore.ts | 4 +++- src/save.ts | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/src/restore.ts b/src/restore.ts index 0fa6333..d411459 100644 --- a/src/restore.ts +++ b/src/restore.ts @@ -7,7 +7,9 @@ import * as utils from "./utils/actionUtils"; async function run(): Promise { try { if (utils.isGhes()) { - utils.logWarning("Cache action is not supported on GHES"); + utils.logWarning( + "Cache action is not supported on GHES. See https://github.com/actions/cache/issues/505 for more details" + ); utils.setCacheHitOutput(false); return; } diff --git a/src/save.ts b/src/save.ts index cdca9db..fc0eb73 100644 --- a/src/save.ts +++ b/src/save.ts @@ -12,7 +12,9 @@ process.on("uncaughtException", e => utils.logWarning(e.message)); async function run(): Promise { try { if (utils.isGhes()) { - utils.logWarning("Cache action is not supported on GHES"); + utils.logWarning( + "Cache action is not supported on GHES. See https://github.com/actions/cache/issues/505 for more details" + ); return; }