mirror of
https://github.com/ikatyang/emoji-cheat-sheet.git
synced 2024-11-22 02:13:48 +01:00
chore: do not throw errors if no new content
This commit is contained in:
parent
aba902ec00
commit
113a0ff313
6
.github/workflows/update.yml
vendored
6
.github/workflows/update.yml
vendored
@ -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)
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user