linting errors

This commit is contained in:
Shubham Tiwari 2022-03-28 14:25:43 +05:30
parent c5862e209e
commit e093ab00fc
3 changed files with 5 additions and 6 deletions

View file

@ -1,7 +1,7 @@
import * as cache from "@actions/cache";
import * as core from "@actions/core";
import { Outputs, RefKey, State } from "../constants";
import * as cache from "@actions/cache";
export function isGhes(): boolean {
const ghUrl = new URL(
@ -78,12 +78,11 @@ export function getInputAsInt(
export function isCacheFeatureAvailable(): boolean {
if (!cache.isFeatureAvailable()) {
if (isGhes()){
if (isGhes()) {
logWarning(
"Cache action is only supported on GHES version >= 3.5. If you are on version >=3.5 Please check with GHES admin if Actions cache service is enabled or not."
);
}
else{
} else {
logWarning(
"An internal error has occurred in cache backend. Please check https://www.githubstatus.com/ for any ongoing issue in actions."
);