Skip to content

Commit

Permalink
Get repo url for badge generation
Browse files Browse the repository at this point in the history
PR-URL: #146
  • Loading branch information
tshemsedinov committed Jan 24, 2024
1 parent cccfd19 commit a068f0f
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions .github/src/check.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,11 @@ const EXECUTION_TIMEOUT = 5000;

const PATH = path.join(process.cwd(), '../..');

const OUT = cp.execSync('git config --get remote.origin.url').toString();
const REPO = metautil.between(OUT, ':', '.');
let REPO = process.env.GITHUB_REPOSITORY;
if (!REPO) {
const OUT = cp.execSync('git config --get remote.origin.url').toString();
REPO = metautil.between(OUT, ':', '.');
}
const LINK = 'https://github.com/' + REPO;

const BASE = 'https://img.shields.io/badge/Self_Assessment-skills-009933';
Expand Down

0 comments on commit a068f0f

Please sign in to comment.