Skip to content

Commit

Permalink
Fix badge separator
Browse files Browse the repository at this point in the history
  • Loading branch information
tshemsedinov committed May 13, 2024
1 parent 36b35e5 commit 752a326
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/src/check.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ const TITLE = 'Software engineering self assessment';
const PARSING_TIMEOUT = 1000;
const EXECUTION_TIMEOUT = 5000;
const PATH = path.join(process.cwd(), '../..');
const SEPARATOR = ' / ';

let REPO = process.env.GITHUB_REPOSITORY;
if (!REPO) {
Expand All @@ -34,7 +35,7 @@ const overall = { count: 0, total: 0, all: 0 };

const generateBadge = () => {
const color = exitCode === 0 ? '009933' : 'FF3300';
const stat = overall.count + ' / ' + overall.total + ' / ' + overall.all;
const stat = overall.count + SEPARATOR + overall.total + SEPARATOR + overall.all;
const img = `${BASE}-${stat}-${color}?${STYLE}`;
return {
md: `[![Skills](${img})](${LINK})`,
Expand Down

0 comments on commit 752a326

Please sign in to comment.