1
0
mirror of https://github.com/ikatyang/emoji-cheat-sheet.git synced 2024-12-22 09:03:42 +01:00

chore: do not throw errors if no new content

This commit is contained in:
Ika 2021-10-28 13:55:16 +00:00 committed by GitHub
parent aba902ec00
commit 113a0ff313

View File

@ -49,5 +49,9 @@ jobs:
}
const prsResult = await github.pulls.list({ owner, repo, head, state: 'open' })
if (prsResult.status === 200 && prsResult.data.length === 0) {
await github.pulls.create({ owner, repo, head, title, base: 'master' })
try {
await github.pulls.create({ owner, repo, head, title, base: 'master' })
} catch (error) {
console.error(error)
}
}