Skip to content

Restart Fly Cron

Restart Fly Cron #15

Workflow file for this run

name: Restart Fly Cron
on:
schedule:
# Run every Sunday at 2:00 AM UTC
- cron: '0 2 * * 0'
workflow_dispatch:
jobs:
restart-apps:
name: Weekly fly cloud-agent restart
runs-on: depot-ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Setup flyctl
uses: superfly/flyctl-actions/setup-flyctl@master
- name: Restart Fly apps
env:
FLY_API_TOKEN: ${{ secrets.FLY_API_TOKEN }}
run: flyctl apps restart