Files
script/.gitlab-ci.yml
牡蛎 23e0373380 chore: 更新 .gitignore 文件
- 在 .gitignore 中添加 .venv 目录,以忽略虚拟环境文件
2025-06-26 22:11:04 +08:00

21 lines
625 B
YAML

stages:
- auto-update
auto-update:
# 需要配置 REPO_TOKEN 和 THE_REPO
stage: auto-update
image: python:3.11
rules:
- if: $CI_PIPELINE_SOURCE == "schedule" # 通过定时任务触发
before_script:
# 创建 pip 配置目录并写入阿里云镜像配置
- mkdir -p ~/.pip
- echo "[global]" > ~/.pip/pip.conf
- echo "index-url = https://mirrors.aliyun.com/pypi/simple/" >> ~/.pip/pip.conf
- echo "trusted-host = mirrors.aliyun.com" >> ~/.pip/pip.conf
script:
# 安装 PyYAML 和 Requests
- pip install -r requirements.txt
# 运行更新脚本
- python update_files.py