Skip to content

Commit

Permalink
fix: add debug printing
Browse files Browse the repository at this point in the history
  • Loading branch information
prototypicalpro committed Aug 21, 2020
1 parent eb7bd22 commit d9c017d
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 1 deletion.
7 changes: 7 additions & 0 deletions dist/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/index.js.map

Large diffs are not rendered by default.

6 changes: 6 additions & 0 deletions src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,12 @@ export default async function run(): Promise<void> {
}
return true
})
if (!validBadges.length) {
core.warning("Didn't find any badges to replace!")
return
}
core.info('Found badge URLs to replace:')
for (const b of validBadges) core.info(`\t- ${b}`)
// fetch each badge
const paths = await Promise.all(
validBadges.map(async (b, i) =>
Expand Down

0 comments on commit d9c017d

Please sign in to comment.