Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .github/actions/constants.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
export const BROWSERS = ['chrome', 'firefox', 'safari'] as const;
export type Browser = (typeof BROWSERS)[number];

export const COLORS = {
green: '3fb950',
red: 'd73a49',
} as const;

export const TEMPLATE_VARS = {
tableBody: '{{ TABLE_BODY }}',
sha: '{{ SHA }}',
Expand Down
2 changes: 1 addition & 1 deletion .github/actions/delete-artifacts.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import type { AsyncFunctionArguments } from 'github-script';
import { BROWSERS, type Browser } from './constants';
import { BROWSERS, type Browser } from './constants.ts';

async function getBrowserArtifacts(
{ github, context }: Pick<AsyncFunctionArguments, 'github' | 'context'>,
Expand Down
2 changes: 1 addition & 1 deletion .github/actions/get-workflow-artifacts.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import fs from 'node:fs/promises';
import type { AsyncFunctionArguments } from 'github-script';
import { COLORS, TEMPLATE_VARS, type Browser } from './constants';
import { COLORS, TEMPLATE_VARS, type Browser } from './constants.ts';

const ARTIFACTS_DATA: Record<
Browser,
Expand Down
Loading