Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/lang/zh-CN/

## [Unreleased]

### Changed

- 调整 pre-commit hooks 的存放位置至 .cache 目录下

## [2.4.2] - 2023-06-14

### Added
Expand Down
4 changes: 0 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,8 @@ RUN poetry export -f requirements.txt --output requirements.txt --without-hashes

FROM python:3.11-slim-bullseye

WORKDIR /app

# 设置时区
ENV TZ=Asia/Shanghai
# 设置 pre-commit hooks 的路径
ENV PRE_COMMIT_HOME=/github/workspace/build/.pre-commit

# 安装依赖
COPY --from=requirements-stage /tmp/requirements.txt /app/requirements.txt
Expand Down
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ jobs:
- name: Cache pre-commit hooks
uses: actions/cache@v3
with:
path: build/.pre-commit
path: .cache/.pre-commit
key: noneflow-${{ runner.os }}-${{ hashFiles('.pre-commit-config.yaml') }}

- name: NoneFlow
Expand All @@ -135,9 +135,10 @@ jobs:
PLUGIN_TEST_METADATA: ${{ needs.plugin_test.outputs.metadata }}
APP_ID: ${{ secrets.APP_ID }}
PRIVATE_KEY: ${{ secrets.APP_KEY }}
PRE_COMMIT_HOME: /github/workspace/.cache/.pre-commit

- name: Fix permission
run: sudo chown -R $(whoami):$(id -ng) build/.pre-commit
run: sudo chown -R $(whoami):$(id -ng) .cache/.pre-commit
```

## 测试
Expand Down