mirror of
https://github.com/zhenxun-org/zhenxun_bot.git
synced 2025-12-15 14:22:55 +08:00
ci: 优化 Poetry 缓存配置
- 移除了 setup-python 操作中的 cache-dependency-path 设置 - 从 release-drafter.yml 中删除了 poetry.lock 文件的引用 - 在 bot_check 工作流中移除了删除 poetry.lock 的步骤
This commit is contained in:
parent
ee586f0ef8
commit
5096e6000f
3
.github/actions/setup-python/action.yml
vendored
3
.github/actions/setup-python/action.yml
vendored
@ -26,9 +26,6 @@ runs:
|
|||||||
with:
|
with:
|
||||||
python-version: ${{ inputs.python-version }}
|
python-version: ${{ inputs.python-version }}
|
||||||
cache: "poetry"
|
cache: "poetry"
|
||||||
cache-dependency-path: |
|
|
||||||
./poetry.lock
|
|
||||||
${{ inputs.env-dir }}/poetry.lock
|
|
||||||
|
|
||||||
- run: |
|
- run: |
|
||||||
cd ${{ inputs.env-dir }}
|
cd ${{ inputs.env-dir }}
|
||||||
|
|||||||
1
.github/release-drafter.yml
vendored
1
.github/release-drafter.yml
vendored
@ -28,7 +28,6 @@ autolabeler:
|
|||||||
files:
|
files:
|
||||||
- "pyproject.toml"
|
- "pyproject.toml"
|
||||||
- "requirements.txt"
|
- "requirements.txt"
|
||||||
- "poetry.lock"
|
|
||||||
title:
|
title:
|
||||||
- "/:wrench:.+/"
|
- "/:wrench:.+/"
|
||||||
- "/🔧.+/"
|
- "/🔧.+/"
|
||||||
|
|||||||
1
.github/workflows/bot_check.yml
vendored
1
.github/workflows/bot_check.yml
vendored
@ -56,7 +56,6 @@ jobs:
|
|||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
if: steps.cache-poetry.outputs.cache-hit != 'true'
|
if: steps.cache-poetry.outputs.cache-hit != 'true'
|
||||||
run: |
|
run: |
|
||||||
rm -rf poetry.lock
|
|
||||||
poetry source remove aliyun
|
poetry source remove aliyun
|
||||||
poetry install --no-root
|
poetry install --no-root
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user