Skip to content

Commit

Permalink
chore: update
Browse files Browse the repository at this point in the history
  • Loading branch information
edison1105 committed Nov 14, 2024
1 parent db55a66 commit d45a16b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/ecosystem-ci-from-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -238,9 +238,11 @@ jobs:
repo: 'core',
issue_number: context.payload.inputs.prNumber
})
console.log(comments)
const lastComment = comments.reverse().find(comment =>
comment.body.includes('Ran ecosystem CI:')
)
console.log(lastComment)
if (lastComment) {
await github.rest.issues.deleteComment({
owner: context.repo.owner,
Expand All @@ -255,7 +257,7 @@ jobs:
})
}
const { data: comment } = await github.rest.issues.createComment({
await github.rest.issues.createComment({
issue_number: context.payload.inputs.prNumber,
owner: context.repo.owner,
repo: 'core',
Expand Down

0 comments on commit d45a16b

Please sign in to comment.