This is an automated email from the ASF dual-hosted git repository.
johnbam pushed a commit to branch trunk
in repository https://gitbox.apache.org/repos/asf/openoffice.git
The following commit(s) were added to refs/heads/trunk by this push:
new 969ad8c117 Clean up the pre-commit workflow (#447)
969ad8c117 is described below
commit 969ad8c1171f222645d49218256b4db166231074
Author: John Bampton <[email protected]>
AuthorDate: Sat Nov 29 06:16:03 2025 +1000
Clean up the pre-commit workflow (#447)
Rename file, use "color" always, install from requirements file, adjust
name key
---
.github/workflows/{linter.yml => pre-commit.yml} | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/.github/workflows/linter.yml b/.github/workflows/pre-commit.yml
similarity index 92%
rename from .github/workflows/linter.yml
rename to .github/workflows/pre-commit.yml
index 6da53bb03e..3796d7726c 100644
--- a/.github/workflows/linter.yml
+++ b/.github/workflows/pre-commit.yml
@@ -15,7 +15,7 @@
# specific language governing permissions and limitations
# under the License.
-name: Lint
+name: pre-commit
on: [pull_request]
@@ -36,7 +36,7 @@ jobs:
- name: Install
run: |
python -m pip install --upgrade pip
- pip install pre-commit
+ pip install -r requirements-dev.txt
- name: Set PY
run: echo "PY=$(python -VV | sha256sum | cut -d' ' -f1)" >> $GITHUB_ENV
- uses: actions/cache@v4
@@ -44,4 +44,4 @@ jobs:
path: ~/.cache/pre-commit
key: pre-commit|${{ env.PY }}|${{
hashFiles('.pre-commit-config.yaml') }}
- name: Run pre-commit
- run: pre-commit run --all-files
+ run: pre-commit run --color=always --all-files