Skip to content

Commit aac9fd3

Browse files
authored
chore: Update wait_for_required_workflows.js (#19275)
#### Summary Woops, erased this line by mistake in https://github.com/cloudquery/cloudquery/pull/19273/files
1 parent b219f74 commit aac9fd3

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

scripts/workflows/wait_for_required_workflows.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,7 @@ module.exports = async ({github, context}) => {
7575
const runsWithPossibleDuplicates = checkRuns.map(({id, name, conclusion}) => ({id, name, conclusion}))
7676
const runs = runsWithPossibleDuplicates.filter((run, index, self) => self.findIndex(({id}) => id === run.id) === index)
7777
console.log(`Got the following check runs: ${JSON.stringify(runs)}`)
78+
const matchingRuns = runs.filter(({name}) => actions.includes(name))
7879
const allowedConclusions = ['success', 'skipped']
7980
const failedRuns = matchingRuns.filter(({conclusion}) => !allowedConclusions.includes(conclusion))
8081
if (failedRuns.length > 0) {

0 commit comments

Comments
 (0)