fix(agent): update error handling on shutdown #5193
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Merge Gate | |
on: | |
pull_request: {} | |
jobs: | |
wait-for-green: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: jchen1/wait-for-green@v1.0.7 | |
id: wait-for-green | |
with: | |
token: '${{ secrets.GITHUB_TOKEN }}' | |
# Ignore the job we're running on lest we create an infinite loop | |
ignored_checks: 'wait-for-green' | |
check_interval: 30 | |
- name: Fail if checks have failed | |
if: steps.wait-for-green.outputs.success != 'true' | |
run: echo "Status checks failed with status ${{ steps.wait-for-green.outputs.success }}!" && exit 1 |