Skip to content

Commit c606653

Browse files
authored
chore: add timeout for citgm command step (#6149)
This also adds a final step that will always run to set the exit code for the citgm job in the case of the command step timing out during known failures
1 parent 86278c8 commit c606653

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

.github/workflows/node-integration.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -432,6 +432,9 @@ jobs:
432432
run: |
433433
npm ls
434434
- name: ${{ join(matrix.commands, ' && ') }}
435+
id: command
436+
continue-on-error: true
437+
timeout-minutes: 10
435438
env: ${{ matrix.env }}
436439
working-directory: ${{ steps.download.outputs.target }}
437440
if: ${{ steps.npm-install.outputs.failed != 'true' }}
@@ -480,3 +483,10 @@ jobs:
480483
echo "::endgroup::"
481484
done
482485
exit $FINALEXIT
486+
- name: Set conclusion
487+
run: |
488+
EXIT=1
489+
if [[ "${{ steps.command.outcome }}" == "success" || "${{ matrix.flaky }}" == "true" || "${{ matrix.knownFailure }}" == "true" ]]; then
490+
EXIT=0
491+
fi
492+
exit $EXIT

0 commit comments

Comments
 (0)