diff --git a/lib/platform/github/index.spec.ts b/lib/platform/github/index.spec.ts index 505b53e2f983a74b7af3af81a472a583307b29ee..10c3590b36677d5e0d233b4b01ebdd783bb33dcb 100644 --- a/lib/platform/github/index.spec.ts +++ b/lib/platform/github/index.spec.ts @@ -717,8 +717,14 @@ describe('platform/github', () => { () => ({ body: { - total_count: 2, + total_count: 3, check_runs: [ + { + id: 2390199, + status: 'completed', + conclusion: 'skipped', + name: 'Conditional GitHub Action', + }, { id: 23950198, status: 'completed', diff --git a/lib/platform/github/index.ts b/lib/platform/github/index.ts index bfa4d08fe51dbf0b782af3df58a617957dc64f7a..ac5d3985e4b9b563f1a1d63832b7536bf864d87c 100644 --- a/lib/platform/github/index.ts +++ b/lib/platform/github/index.ts @@ -1175,7 +1175,9 @@ export async function getBranchStatus( } if ( (commitStatus.state === 'success' || commitStatus.statuses.length === 0) && - checkRuns.every((run) => ['neutral', 'success'].includes(run.conclusion)) + checkRuns.every((run) => + ['skipped', 'neutral', 'success'].includes(run.conclusion) + ) ) { return BranchStatus.green; }