Skip to content

Redis Janitor

Redis Janitor #1

Workflow file for this run

name: Redis Janitor
on:
schedule:
- cron: "*/1 * * * *" # every 30 minutes
workflow_dispatch: # allow manual trigger
jobs:
run-janitor:
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/checkout@v3
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: "1.22"
- name: Build janitor
run: go build -o janitor ./cmd/janitor
- name: Run janitor
env:
UPSTASH_REDIS_URL: ${{ secrets.UPSTASH_REDIS_URL }}
UPSTASH_REDIS_PASSWORD: ${{ secrets.UPSTASH_REDIS_PASSWORD }}
run: ./janitor