Use cache instead of artifacts

This commit is contained in:
Sergey Dolin
2023-06-23 23:13:39 +02:00
parent c7d43763bf
commit ab422d01a2
76 changed files with 5960 additions and 5586 deletions

View File

@@ -0,0 +1,19 @@
import {TypedResponse} from '@actions/http-client/lib/interfaces';
import {HttpClientError} from '@actions/http-client';
export const isSuccessStatusCode = (statusCode?: number): boolean => {
if (!statusCode) {
return false;
}
return statusCode >= 200 && statusCode < 300;
};
export function isServerErrorStatusCode(statusCode?: number): boolean {
if (!statusCode) {
return true;
}
return statusCode >= 500;
}
export interface TypedResponseWithError<T> extends TypedResponse<T> {
error?: HttpClientError;
}