mirror of
https://github.com/ikatyang/emoji-cheat-sheet.git
synced 2024-12-05 06:24:38 +08: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' })
|
const prsResult = await github.pulls.list({ owner, repo, head, state: 'open' })
|
||||||
if (prsResult.status === 200 && prsResult.data.length === 0) {
|
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