Caching on GHES (#308)

* initial changes

* review comments

* updated with correct message

* linting

* update version

* updated version
This commit is contained in:
Shubham Tiwari 2022-04-01 00:39:57 +05:30 committed by GitHub
parent e886040dc2
commit dc1a9f2791
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
8 changed files with 826 additions and 712 deletions

View file

@ -1,6 +1,6 @@
import * as core from '@actions/core';
import * as auth from './auth';
import { getBooleanInput } from './util';
import { getBooleanInput, isCacheFeatureAvailable } from './util';
import * as constants from './constants';
import { restore } from './cache';
import * as path from 'path';
@ -42,7 +42,7 @@ async function run() {
core.info(`##[add-matcher]${path.join(matchersPath, 'java.json')}`);
await auth.configureAuthentication();
if (cache) {
if (cache && isCacheFeatureAvailable()) {
await restore(cache);
}
} catch (error) {