Unverified Commit 2ebdcff2 authored by Vít Stanislav's avatar Vít Stanislav Committed by GitHub
Browse files

Add "see more" link to GHE-not-supported warning (#609)

* 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 :-)

* Update new GHE-not-supported message in tests

* Update generated dist files
parent 5807af26
Loading
Loading
Loading
Loading
+1 −1
Changes for __tests__/restore.test.ts: 1 added line, 1 removed line.
Original line number Diff line number Diff line
@@ -68,7 +68,7 @@ test("restore on GHES should no-op", async () => {
    expect(setCacheHitOutputMock).toHaveBeenCalledTimes(1);
    expect(setCacheHitOutputMock).toHaveBeenCalledWith(false);
    expect(logWarningMock).toHaveBeenCalledWith(
        "Cache action is not supported on GHES"
        "Cache action is not supported on GHES. See https://github.com/actions/cache/issues/505 for more details"
    );
});

+1 −1
Changes for __tests__/save.test.ts: 1 added line, 1 removed line.
Original line number Diff line number Diff line
@@ -111,7 +111,7 @@ test("save on GHES should no-op", async () => {

    expect(saveCacheMock).toHaveBeenCalledTimes(0);
    expect(logWarningMock).toHaveBeenCalledWith(
        "Cache action is not supported on GHES"
        "Cache action is not supported on GHES. See https://github.com/actions/cache/issues/505 for more details"
    );
});

+1 −1
Changes for dist/restore/index.js: 1 added line, 1 removed line.
Original line number Diff line number Diff line
@@ -49218,7 +49218,7 @@ function run() {
    return __awaiter(this, void 0, void 0, function* () {
        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;
            }
+1 −1
Changes for dist/save/index.js: 1 added line, 1 removed line.
Original line number Diff line number Diff line
@@ -47162,7 +47162,7 @@ function run() {
    return __awaiter(this, void 0, void 0, function* () {
        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;
            }
            if (!utils.isValidEvent()) {
+3 −1
Changes for src/restore.ts: 3 added lines, 1 removed line.
Original line number Diff line number Diff line
@@ -7,7 +7,9 @@ import * as utils from "./utils/actionUtils";
async function run(): Promise<void> {
    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;
        }
Loading