From 2617546094a4a2d7889a36f635c139a1a5210f70 Mon Sep 17 00:00:00 2001 From: CrazyMax <1951866+crazy-max@users.noreply.github.com> Date: Wed, 28 Jan 2026 12:16:30 +0100 Subject: [PATCH] github: derive summary table types from core API Signed-off-by: CrazyMax <1951866+crazy-max@users.noreply.github.com> --- src/github.ts | 3 +-- src/types/github.ts | 4 ++++ 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/src/github.ts b/src/github.ts index de943f7..403f254 100644 --- a/src/github.ts +++ b/src/github.ts @@ -27,7 +27,6 @@ import {getBackendIdsFromToken} from '@actions/artifact/lib/internal/shared/util import {getExpiration} from '@actions/artifact/lib/internal/upload/retention'; import {InvalidResponseError, NetworkError} from '@actions/artifact'; import * as core from '@actions/core'; -import {SummaryTableCell} from '@actions/core/lib/summary'; import * as github from '@actions/github'; import * as httpm from '@actions/http-client'; import {TransferProgressEvent} from '@azure/core-rest-pipeline'; @@ -36,7 +35,7 @@ import {jwtDecode, JwtPayload} from 'jwt-decode'; import {Util} from './util.js'; -import {BuildSummaryOpts, GitHubActionsRuntimeToken, GitHubActionsRuntimeTokenAC, GitHubContentOpts, GitHubRelease, GitHubRepo, UploadArtifactOpts, UploadArtifactResponse} from './types/github.js'; +import {BuildSummaryOpts, GitHubActionsRuntimeToken, GitHubActionsRuntimeTokenAC, GitHubContentOpts, GitHubRelease, GitHubRepo, SummaryTableCell, UploadArtifactOpts, UploadArtifactResponse} from './types/github.js'; export interface GitHubOpts { token?: string; diff --git a/src/types/github.ts b/src/types/github.ts index 33b4fcf..af184ef 100644 --- a/src/types/github.ts +++ b/src/types/github.ts @@ -14,6 +14,7 @@ * limitations under the License. */ +import * as core from '@actions/core'; import {AnnotationProperties} from '@actions/core'; import {components as OctoOpenApiTypes} from '@octokit/openapi-types'; import {JwtPayload} from 'jwt-decode'; @@ -21,6 +22,9 @@ import {JwtPayload} from 'jwt-decode'; import {BakeDefinition} from './buildx/bake.js'; import {ExportResponse} from './buildx/history.js'; +export type SummaryTableRow = Parameters[0][number]; +export type SummaryTableCell = Exclude; + export interface GitHubRelease { id: number; tag_name: string;