mirror of
http://shenjack.top:5100/ARS/ARS-docs.git
synced 2024-11-23 19:35:06 +08:00
shenjack
2558274afb
push 看起来还是得要node是吧 用这个 还得ensurepip是吧 用一下 setup python reee 行 v4 ? 还得是local 使用新 mirror 的 ? 不用了,行吧 ? v1 ? 行吗?
35 lines
826 B
YAML
35 lines
826 B
YAML
name: 自动生成 label
|
|
|
|
# main 分支推送
|
|
on:
|
|
[push]
|
|
# push:
|
|
# branches:
|
|
# - main
|
|
|
|
jobs:
|
|
Generate-label:
|
|
runs-on: node-21
|
|
steps:
|
|
- name: 获取仓库
|
|
uses: http://shenjack.top:5100/gitea-server/checkout@v4
|
|
|
|
# - name: 安装 Python
|
|
# uses: actions/setup-python
|
|
|
|
- name: ensure pip
|
|
uses: http://shenjack.top:5100/gitea-server/python-packs@17b23b7e6b488cbc2244e47f640351bac0595c15
|
|
|
|
- name: 安装依赖
|
|
run: |
|
|
python3 -m ensurepip
|
|
python3 -m pip config set global.index-url https://pypi.tuna.tsinghua.edu.cn/simple
|
|
python3 -m pip install -U pip
|
|
python3 -m pip install mistune
|
|
|
|
- name: 生成 label
|
|
run: |
|
|
python3 generate_label.py
|
|
|
|
# https://gitea.com/actions/gitea-release-action
|