2023-12-09 02:03:41 +08:00
|
|
|
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
|
2023-12-10 11:52:51 +08:00
|
|
|
uses: http://shenjack.top:5100/gitea-server/python-packs@85c2e8d21db150b07c141e7319377144f6ff9b5a
|
2023-12-09 02:03:41 +08:00
|
|
|
|
|
|
|
- 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
|