Skip to content

Publisher watchdog #1417

Publisher watchdog

Publisher watchdog #1417

name: Publisher watchdog
on:
schedule:
# Hourly
- cron: '0 * * * *'
workflow_dispatch:
jobs:
watchdog:
if: github.repository == 'DefinitelyTyped/DefinitelyTyped'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6
- uses: ./.github/actions/setup-for-scripts
- run: node ./scripts/watchdog-publisher.js
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Notify dedicated teams channel
if: ${{ failure() }}
uses: jdcargile/ms-teams-notification@28e5ca976c053d54e2b852f3f38da312f35a24fc # v1.4
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
ms-teams-webhook-uri: ${{ secrets.MS_TEAMS_WATCHDOG_WEBHOOK_URI }}
notification-summary: Publisher watchdog failed
notification-color: dc3545
timezone: America/Los_Angeles
verbose-logging: true