Hi, I’ve developed an application to extract and integrate various databases with information related to my degree course, to serve as a reference for students and teachers. I created graphical visualizations and stored them on a website hosted on Streamlit’s cloud service.
The problem is that after 7 days without activity, the site with the graphic visualizations goes into hibernation mode and can no longer be accessed. The Streamlit documentation recommends creating an automated routine to add empty commits to the project’s GitHub repository, as a palliative alternative to the absence of user traffic. So I did. Every 5 days, an empty commit is added to the project repository, but this commit addition flow has not been successful in preventing the app from hibernating due to lack of traffic.
What could I change in the workflow created in GitHub Actions to prevent the app from hibernating? Below, for verification purposes, I’ve provided the code for automating the addition of commits, stored in the .yml file.
name: app_activity
on:
schedule:
- cron: "0 0 */5 * *"
workflow_dispatch:
env:
ACTIONS_ALLOW_UNSECURE_COMMANDS: true
jobs:
auto_commits:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: commit files
run: |
git config --local user.email "action@github.com"
git config --local user.name "GitHub Action"
git commit --allow-empty -m "Auto commit para manutenção da atividade do app"
- name: push changes
uses: ad-m/github-push-action@master
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
branch: main