-
Notifications
You must be signed in to change notification settings - Fork 0
54 lines (43 loc) · 1.31 KB
/
make_page.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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
name: Issue Doomgrad Paper Review
on:
workflow_dispatch:
schedule:
# Runs every hour on weekdays (Monday to Friday)
- cron: "0 * * * 1-5"
# Runs every 6 hours on weekends (Saturday and Sunday)
- cron: "0 */6 * * 0,6"
permissions:
contents: write
jobs:
run-python-script:
runs-on: ubuntu-latest
steps:
- name: Checkout repository content
uses: actions/checkout@v2
- name: Set up Python 3.9
uses: actions/setup-python@v2
with:
python-version: '3.9'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: Run Python script
run: python main.py
env:
CLAUDE_KEY: ${{ secrets.CLAUDE_KEY }}
MISTRAL_KEY: ${{ secrets.MISTRAL_KEY }}
OPENAI_KEY: ${{ secrets.OPENAI_KEY }}
FAL_KEY: ${{ secrets.FAL_KEY }}
- name: Test commit
run: |
git config --global user.name "GitHub Actions"
git config --global user.email "[email protected]"
git add .
git commit -m "Auto. Make Doomgrad HF Review on $(date +"%d %B")"
- name: Pull latest changes from remote
run: git pull origin main
- name: Push changes back to GitHub
run: git push
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}