github: move types

Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
This commit is contained in:
CrazyMax
2023-02-01 13:06:20 +01:00
parent dea2294b93
commit fe8b21ecf5
3 changed files with 14 additions and 9 deletions

View File

@@ -16,15 +16,10 @@
import {GitHub as Octokit} from '@actions/github/lib/utils';
import * as github from '@actions/github';
import {components as OctoOpenApiTypes} from '@octokit/openapi-types';
import jwt_decode, {JwtPayload} from 'jwt-decode';
import {Context} from '@actions/github/lib/context';
import jwt_decode from 'jwt-decode';
export type GitHubRepo = OctoOpenApiTypes['schemas']['repository'];
export interface GitHubActionsRuntimeToken extends JwtPayload {
ac?: string;
}
import {GitHubActionsRuntimeToken, GitHubRepo} from './types/github';
export interface GitHubOpts {
token?: string;