mirror of
https://github.com/actions/cache.git
synced 2025-07-29 04:36:09 +08:00
No-op on GHES
This commit is contained in:
@@ -6,6 +6,12 @@ import * as utils from "./utils/actionUtils";
|
||||
|
||||
async function run(): Promise<void> {
|
||||
try {
|
||||
if (utils.isGhes()) {
|
||||
core.info("Cache action is not supported on GHES");
|
||||
utils.setCacheHitOutput(false);
|
||||
return;
|
||||
}
|
||||
|
||||
// Validate inputs, this can cause task failure
|
||||
if (!utils.isValidEvent()) {
|
||||
utils.logWarning(
|
||||
|
Reference in New Issue
Block a user