-
Notifications
You must be signed in to change notification settings - Fork 0
32 lines (26 loc) · 857 Bytes
/
main.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
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