adapt-authoring-core 2.2.3 → 2.2.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -14,9 +14,10 @@ export default class CoreModules {
|
|
|
14
14
|
const workflows = ['tests', 'standardjs']
|
|
15
15
|
const results = await Promise.all(workflows.map(async w => {
|
|
16
16
|
const url = `${homepage}/actions/workflows/${w}.yml`
|
|
17
|
+
const badgeUrl = `${url}/badge.svg`
|
|
17
18
|
try {
|
|
18
|
-
const res = await fetch(
|
|
19
|
-
if (res.ok) return `[
|
|
20
|
+
if (res.ok) return `[](${url})`
|
|
20
21
|
} catch {}
|
|
21
22
|
return null
|
|
22
23
|
}))
|