Skip to content

Commit 2ebdcff

Browse files
authored
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
1 parent 5807af2 commit 2ebdcff

File tree

6 files changed

+405
-401
lines changed

6 files changed

+405
-401
lines changed

__tests__/restore.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ test("restore on GHES should no-op", async () => {
6868
expect(setCacheHitOutputMock).toHaveBeenCalledTimes(1);
6969
expect(setCacheHitOutputMock).toHaveBeenCalledWith(false);
7070
expect(logWarningMock).toHaveBeenCalledWith(
71-
"Cache action is not supported on GHES"
71+
"Cache action is not supported on GHES. See https://github.com/actions/cache/issues/505 for more details"
7272
);
7373
});
7474

__tests__/save.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ test("save on GHES should no-op", async () => {
111111

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

0 commit comments

Comments
 (0)