Skip to content

Keep Streamlit App Active #9

Keep Streamlit App Active

Keep Streamlit App Active #9

Workflow file for this run

name: Keep Streamlit App Active
# Schedule the workflow to run once daily at 1 AM UTC (adjust as needed)
on:
schedule:
- cron: '0 1 * * *'
workflow_dispatch: # This allows you to run the workflow manually if needed
jobs:
keep-active:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Update README
run: |
echo "Last updated: $(date)" >> README.md
- name: Commit changes
run: |
git config --local user.name "github-actions[bot]"
git config --local user.email "github-actions[bot]@users.noreply.github.com"
git add README.md
git commit -m "Keep Streamlit app active $(date)"
- name: Push changes
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
git push