KG Monitor Snapshot #109
This file contains hidden or 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: KG Monitor Snapshot | |
| on: | |
| schedule: | |
| - cron: '0 2 * * 1' | |
| workflow_dispatch: | |
| permissions: | |
| contents: read | |
| jobs: | |
| run-monitor: | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 10 | |
| steps: | |
| - uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0 | |
| with: | |
| persist-credentials: false | |
| - uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0 | |
| with: | |
| node-version: '18' | |
| - run: npm ci | |
| if: ${{ hashFiles('package-lock.json') != '' }} | |
| - run: node scripts/kg-monitor.js | |
| env: | |
| KG_MONITOR_LOG: "1" | |
| - name: Upload KG monitor report | |
| uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1 | |
| with: | |
| name: kg-monitor-report | |
| path: .monitoring-logs/ | |
| # dot-directory is treated as hidden and silently skipped otherwise | |
| include-hidden-files: true |