Skip to content

Keep Streamlit App Alive #52

Keep Streamlit App Alive

Keep Streamlit App Alive #52

# .github/workflows/keep-app-alive.yml
name: Keep Streamlit App Alive
on:
# Run this workflow every 10 hours
schedule:
- cron: '0 */10 * * *'
workflow_dispatch:
jobs:
keep-app-alive:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
# 1. Checkout Repo Code
- name: Checkout Repo Code
uses: actions/checkout@v4
# 2. Configure Git with user name and email
- name: Configure Git
run: |
git config --global user.name 'Github Actions'
git config --global user.email 'actions@github.com'
# 3. Create an empty commit and push it
- name: Create Empty Commit
run: |
git commit --allow-empty -m "chore: Keep Streamlit App Alive"
git push