Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
chore(ci): Log check run ID to detect duplicates
  • Loading branch information
erezrokah committed Apr 10, 2023
commit d28fc22b57ebc7bad8c117e9b23ecc871da3054c
2 changes: 1 addition & 1 deletion .github/workflows/wait_for_required_workflows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ jobs:
status: 'completed',
per_page: 100
})
const runs = checkRuns.map(({ name, conclusion }) => ({ name, conclusion }))
const runs = checkRuns.map(({ id, name, conclusion }) => ({ id, name, conclusion }))
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I wonder why the diff shows the first id with the space after the comma, and the second id with the space before 🤷

console.log(`Got the following check runs: ${JSON.stringify(runs)}`)
const matchingRuns = runs.filter(({ name }) => actions.includes(name))
const failedRuns = matchingRuns.filter(({ conclusion }) => conclusion !== 'success')
Expand Down