fix: handle "skipped" status in github combined checks (#471)

pull/474/head
amio 2021-01-08 11:07:53 +08:00
rodzic fb8a58201b
commit 41194a63ac
1 zmienionych plików z 1 dodań i 0 usunięć

Wyświetl plik

@ -97,6 +97,7 @@ function combined (states: Array<any>, stateKey: string = 'state') {
const succeeded = states
.filter(x => x[stateKey] !== 'cancelled')
.filter(x => x[stateKey] !== 'skipped')
.every(x => x[stateKey] === 'success')
if (succeeded) return 'success'