Skip to content

runpod-monit

runpod-monit #11

Workflow file for this run

name: runpod-monit
permissions:
actions: write
on:
schedule:
# https://stackoverflow.com/a/60095391/200764
# The shortest interval you can run scheduled workflows is once every 5 minutes.
- cron: "*/5 * * * *"
jobs:
monit:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup Python
uses: actions/[email protected]
with:
python-version: 3.x
cache: pip
cache-dependency-path: yard-rs/runpod-xp/requirements-runpod.txt
- name: Monit
run: |
cd yard-rs/runpod-xp
just prep
just monit
env:
RUNPOD_API_KEY: ${{ secrets.RUNPOD_API_KEY }}
DISCORD_WEBHOOK_URL: ${{ secrets.DISCORD_WEBHOOK_URL }}
GH_TOKEN: ${{ github.token }}