ci: drop shouldUpdate check

This commit is contained in:
Bogdan Popa committed 2021-11-17 09:24:09 +02:00
1 parent 22b6d9485d
commit e8d9b259aa
1 file changed
+2 -9
+2 -9
View File
@@ -20,10 +20,8 @@ let octokit
await core.group('Fetching repositories & updating lines...', async () => {
for (const repo of repos) {
const line = await generateLine(repo.repoStr)
if (shouldUpdate(lines[repo.index], line)) {
core.debug(`Updated line: '${line}'`)
lines[repo.index] = line
}
core.debug(`Updated line: '${line}'`)
lines[repo.index] = line
}
})
@@ -77,8 +75,3 @@ async function generateBadge(repoStr) {
.map(s => encodeURIComponent(s.replace(/\-/g, '--')))
.join('-')
}
function shouldUpdate(oldLine, newLine) {
const badDateReg = /red\)$/
return badDateReg.test(oldLine) || !badDateReg.test(newLine)
}