(tag: string)
| 871 | } |
| 872 | |
| 873 | async function areEcosystemTestsPassing(tag: string): Promise<boolean> { |
| 874 | let svgUrl = 'https://github.com/prisma/ecosystem-tests/workflows/test/badge.svg?branch=' |
| 875 | |
| 876 | if (tag === 'patch-dev') { |
| 877 | svgUrl += tag |
| 878 | } else { |
| 879 | svgUrl += 'dev' |
| 880 | } |
| 881 | |
| 882 | const res = await fetch(svgUrl).then((r) => r.text()) |
| 883 | return res.includes('passing') |
| 884 | } |
| 885 | |
| 886 | function getPatchBranch() { |
| 887 | if (process.env.GITHUB_REF_NAME) { |