Skip to content

Commit f470b9d

Browse files
committed
CORTEX-000 Add weekly review workflow for automation outputs
1 parent 20d32b7 commit f470b9d

1 file changed

Lines changed: 62 additions & 0 deletions

File tree

Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
name: CortexOS Weekly Review
2+
3+
on:
4+
schedule:
5+
- cron: "0 22 * * 0"
6+
workflow_dispatch:
7+
8+
jobs:
9+
weekly-review:
10+
runs-on: ubuntu-latest
11+
permissions:
12+
contents: write
13+
14+
steps:
15+
- name: Checkout repository
16+
uses: actions/checkout@v4
17+
18+
- name: Set up Python
19+
uses: actions/setup-python@v5
20+
with:
21+
python-version: "3.12"
22+
23+
- name: Install dependencies
24+
run: |
25+
python -m pip install --upgrade pip
26+
pip install -r requirements.txt
27+
pip install -r cortexos_automation_scripts/requirements.txt
28+
29+
- name: Run weekly pipeline
30+
working-directory: cortexos_automation_scripts
31+
env:
32+
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
33+
OPENAI_MODEL: ${{ secrets.OPENAI_MODEL }}
34+
APP_NAME: CortexOS
35+
APP_URL: https://github.com/CortexMindSystem/Cortex-Thinking-Engine
36+
AUTHOR_NAME: Pierre-Henry Soria
37+
AUTHOR_URL: https://ph7.me
38+
SITE_BASE_URL: https://ph7.me
39+
RSS_FEEDS: ${{ secrets.RSS_FEEDS }}
40+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
41+
GITHUB_TOPICS: ai,agents,developer-tools,context-engineering
42+
CORTEX_OUTPUTS_DIR: output/cortex_today
43+
AUTO_APPROVE: "true"
44+
PUBLISH_X: "false"
45+
PUBLISH_LINKEDIN: "false"
46+
PUBLISH_SITE: "true"
47+
PUBLISH_JSON_LOG: "true"
48+
OUTPUT_DIR: output
49+
run: |
50+
python scripts/run_weekly_pipeline.py --strict-quality
51+
52+
- name: Commit generated outputs
53+
run: |
54+
git config user.name "github-actions[bot]"
55+
git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
56+
git add cortexos_automation_scripts/output/
57+
if git diff --cached --quiet; then
58+
echo "No generated changes to commit"
59+
exit 0
60+
fi
61+
git commit -m "chore: weekly CortexOS review"
62+
git push

0 commit comments

Comments
 (0)