Skip to content

Commit

Permalink
fix(ci): optimized contributors workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
PKief committed Jan 24, 2025
1 parent 9e25232 commit 8550247
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/scripts/contributors/contributors.ts
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,8 @@ const init = async () => {
green(`Successfully created ${fileName} image!`)
);
})
.catch(() => {
.catch((error) => {
console.log('> Material Icon Theme:', red(`Error: ${error}`));
throw Error(red(`Error while creating ${fileName} image`));
});
};
Expand Down
5 changes: 4 additions & 1 deletion src/scripts/helpers/screenshots.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,10 @@ import Puppeteer from 'puppeteer';
* @param fileName Name of the output image
*/
export const createScreenshot = async (filePath: string, fileName: string) => {
const browser = await Puppeteer.launch();
const browser = await Puppeteer.launch({
headless: true,
args: ['--no-sandbox', '--disable-setuid-sandbox'],
});
const htmlFilePath = join('file:', filePath);

try {
Expand Down

0 comments on commit 8550247

Please sign in to comment.