Keep Streamlit App Active #9
This file contains 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
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 |