Skip to content

Commit

Permalink
Update validate.js
Browse files Browse the repository at this point in the history
  • Loading branch information
MarleneJiang authored Jul 29, 2023
1 parent 6e05bb6 commit 54a2e43
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/actions-scripts/validate.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@ async function run() {
if (!repository) throw new Error('REPOSITORY env var is not set')
if (repository.includes('https://raw.githubusercontent.com/')) {
try {
console.log(repository);
const response = await fetch(new URL(repository.replace(/[<>]/g, '')));
const data = await response.text();
const parsed = toml.parse(data);
console.log(repository);
const content = {
"name": parsed.project.name,
"description": parsed.project.description,
Expand Down

0 comments on commit 54a2e43

Please sign in to comment.