2023-12-14 10:09:40 +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
|
2023-12-14 10:44:12 +08:00
|
|
|
with:
|
|
|
|
path: main
|
2023-12-14 10:10:13 +08:00
|
|
|
|
2023-12-14 10:09:40 +08:00
|
|
|
# - name: ensure pip
|
|
|
|
# uses: http://shenjack.top:5100/gitea-server/python-packs@1cd32b1235ba23d51524b6870c0735f63efcffc2
|
|
|
|
|
2023-12-14 12:38:58 +08:00
|
|
|
# - name: ensurepip
|
|
|
|
# uses: http://shenjack.top:5100/gitea-server/checkout@v4
|
|
|
|
# with:
|
|
|
|
# repository: gitea-server/python-packs
|
|
|
|
# path: python-packs
|
|
|
|
|
|
|
|
- name: pip
|
|
|
|
run: |
|
|
|
|
cd ..
|
|
|
|
git clone https://gitea.com/gitea/python-packs.git
|
|
|
|
cd python-packs
|
|
|
|
python3 -m ensurepip
|
|
|
|
cd ..
|
|
|
|
cd main
|
2023-12-14 10:09:40 +08:00
|
|
|
|
|
|
|
- name: 安装依赖
|
|
|
|
run: |
|
|
|
|
ls -la .
|
|
|
|
ls -la ..
|
|
|
|
ls -la ../..
|
2023-12-14 12:38:58 +08:00
|
|
|
# python3 -m ../python-packs/ensurepip
|
2023-12-14 10:09:40 +08:00
|
|
|
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
|