Skip to content

Commit

Permalink
Merge branch 'main' into feat/add-repo-data
Browse files Browse the repository at this point in the history
  • Loading branch information
Kaleido66 authored Nov 28, 2024
2 parents a89c24e + 52051fb commit a4af7ac
Show file tree
Hide file tree
Showing 15 changed files with 1,021 additions and 148,577 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/updateCompanyData.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: Monthly Python Script Execution

on:
schedule:
# 每个月2号的00:00 UTC运行脚本
- cron: '0 0 2 * *'
workflow_dispatch: # 也允许手动触发工作流

jobs:
run_python_script:
runs-on: ubuntu-latest # 使用 GitHub 提供的 Ubuntu 环境

steps:
- name: Checkout code
uses: actions/checkout@v3 # 检出仓库代码

- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.12' # 设置 Python 版本

- name: Install Python dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: Run the Python script
run: |
python dashboard/company/scripts/workflow.py
env:
xlabDB_HOST: ${{ secrets.DB_HOST }}
xlabDB_USER: ${{ secrets.DB_USER }}
xlabDB_PASSWORD: ${{ secrets.DB_PASSWORD }}
dashboardDB_HOST: ${{ secrets.DASHBOARD_DB_HOST }}
dashboardDB_USER: ${{ secrets.DASHBOARD_DB_USER }}
dashboardDB_PASSWORD: ${{ secrets.DASHBOARD_DB_PASSWORD }}
Loading

0 comments on commit a4af7ac

Please sign in to comment.