Unverified Commit 4cb86e97 authored by Daz DeBoer's avatar Daz DeBoer
Browse files

Report when cache not available

parent eaed5520
Loading
Loading
Loading
Loading
+2
Changes for src/cache-reporting.ts: 2 added lines, 0 removed lines.
Original line number Diff line number Diff line
import * as core from '@actions/core'
import * as cache from '@actions/cache'

/**
 * Collects information on what entries were saved and restored during the action.
@@ -15,6 +16,7 @@ export class CacheListener {
    }

    get cacheStatus(): string {
        if (!cache.isFeatureAvailable()) return 'not available'
        if (this.isCacheDisabled) return 'disabled'
        if (this.isCacheWriteOnly) return 'write-only'
        if (this.isCacheReadOnly) return 'read-only'