Skip to content

CI Watchdog

CI Watchdog #147

Workflow file for this run

name: CI Watchdog
on:
workflow_run:
workflows:
- CI
types:
- completed
workflow_dispatch:
env:
FORCE_JAVASCRIPT_ACTIONS_TO_NODE24: 'true'
permissions:
contents: write
pull-requests: write
issues: write
actions: read
jobs:
watchdog:
if: ${{ github.event_name == 'workflow_dispatch' || (github.event_name == 'workflow_run' && github.event.workflow_run.conclusion == 'failure' && github.event.workflow_run.head_branch == 'main') }}
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v5
with:
fetch-depth: 0
- name: Setup Node
uses: actions/setup-node@v5
with:
node-version: 24.3.0
- name: Pin npm version
run: npm i -g npm@11.4.2
- name: Install gh cli auth context
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: gh auth status
- name: Run watchdog
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
RUN_ID=""
if [[ "${{ github.event_name }}" == "workflow_run" ]]; then
RUN_ID="${{ github.event.workflow_run.id }}"
fi
bash .github/scripts/ci_watchdog.sh "${RUN_ID}"