mirror of
https://github.com/apache/superset.git
synced 2026-04-12 12:47:53 +00:00
* build: inline cached-dependencies to unblock CI * Run E2E on pull_request on;y * Inline all external actions * Checkout needed for internal actions Also fixes pre-commit * Add missing files
44 lines
1.0 KiB
TypeScript
44 lines
1.0 KiB
TypeScript
// Possible input names
|
|
export enum InputName {
|
|
// @actions/cache specific inputs
|
|
Key = 'key',
|
|
Path = 'path',
|
|
RestoreKeys = 'restore-keys',
|
|
|
|
// setup-webapp specific inputs
|
|
Run = 'run',
|
|
Caches = 'caches',
|
|
Bashlib = 'bashlib',
|
|
Parallel = 'parallel',
|
|
}
|
|
|
|
// Possible GitHub event names
|
|
export enum GitHubEvent {
|
|
Push = 'push',
|
|
PullRequest = 'pull_request',
|
|
}
|
|
|
|
// Directly available environment variables
|
|
export enum EnvVariable {
|
|
GitHubEventName = 'GITHUB_EVENT_NAME',
|
|
}
|
|
|
|
export const EnvVariableNames = new Set(Object.values(EnvVariable) as string[]);
|
|
|
|
export interface Inputs {
|
|
[EnvVariable.GitHubEventName]?: string;
|
|
[InputName.Key]?: string;
|
|
[InputName.RestoreKeys]?: string;
|
|
[InputName.Path]?: string;
|
|
[InputName.Caches]?: string;
|
|
[InputName.Bashlib]?: string;
|
|
[InputName.Run]?: string;
|
|
[InputName.Parallel]?: string;
|
|
}
|
|
|
|
export const DefaultInputs = {
|
|
[InputName.Caches]: '.github/workflows/caches.js',
|
|
[InputName.Bashlib]: '.github/workflows/bashlib.sh',
|
|
[InputName.Run]: 'default-setup-command',
|
|
} as Inputs;
|