Skip to content

Commit

Permalink
ci: retry
Browse files Browse the repository at this point in the history
  • Loading branch information
Gustav-Eikaas committed Aug 15, 2023
1 parent 1cdedb9 commit 4719964
Showing 1 changed file with 25 additions and 22 deletions.
47 changes: 25 additions & 22 deletions github-action/src/releasePr.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,30 @@ import { prepareBundle } from './utils/prepareBundle.js';
import { makeManifest } from './utils/makeManifest.js';
import { zipBundle } from './utils/zipBundle.js';
import { uploadBundle } from './utils/uploadBundle.js';
const ColorReset = '\x1b[0m';
type TextColor =
| 'Red'
| 'Green'
| 'Black'
| 'Yellow'
| 'Blue'
| 'Magenta'
| 'Cyan'
| 'White';

const textColor = {
Red: '\x1b[31m',
Black: '\x1b[30m',
Green: '\x1b[32m',
Yellow: '\x1b[33m',
Blue: '\x1b[34m',
Magenta: '\x1b[35m',
Cyan: '\x1b[36m',
White: '\x1b[37m',
} satisfies Record<TextColor, string>;




const ciUrl = 'https://fusion-s-portal-ci.azurewebsites.net';

Expand Down Expand Up @@ -81,28 +105,7 @@ async function patchWithPrNumber(prNumber: string, token: string, appKey: string
}
}

const ColorReset = '\x1b[0m';
type TextColor =
| 'Red'
| 'Green'
| 'Black'
| 'Yellow'
| 'Blue'
| 'Magenta'
| 'Cyan'
| 'White';

const textColor = {
Red: '\x1b[31m',
Black: '\x1b[30m',
Green: '\x1b[32m',
Yellow: '\x1b[33m',
Blue: '\x1b[34m',
Magenta: '\x1b[35m',
Cyan: '\x1b[36m',
White: '\x1b[37m',
} satisfies Record<TextColor, string>;

export function logInfo(message: string, color: TextColor): void {
function logInfo(message: string, color: TextColor): void {
console.log(`${textColor[color]}${message}${ColorReset}`);
}

0 comments on commit 4719964

Please sign in to comment.