Keep Streamlit App Alive #8
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
# .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 |