You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucenenet.apache.org by pa...@apache.org on 2026/06/10 15:24:35 UTC
(lucenenet) branch master updated: [CI] Switch pre-commit to use ASF approved prek-action (#1318)
This is an automated email from the ASF dual-hosted git repository.
paulirwin pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/lucenenet.git
The following commit(s) were added to refs/heads/master by this push:
new bfa05f89d [CI] Switch pre-commit to use ASF approved prek-action (#1318)
bfa05f89d is described below
commit bfa05f89d06bcc3ccc7d89e8318f952f7d051f8e
Author: John Bampton <jb...@users.noreply.github.com>
AuthorDate: Thu Jun 11 01:24:29 2026 +1000
[CI] Switch pre-commit to use ASF approved prek-action (#1318)
---
.github/workflows/pre-commit.yml | 24 ++++--------------------
1 file changed, 4 insertions(+), 20 deletions(-)
diff --git a/.github/workflows/pre-commit.yml b/.github/workflows/pre-commit.yml
index 97551fc77..c955a0bd9 100644
--- a/.github/workflows/pre-commit.yml
+++ b/.github/workflows/pre-commit.yml
@@ -15,6 +15,8 @@
# specific language governing permissions and limitations
# under the License.
+---
+# https://github.com/j178/prek
name: pre-commit
on: [pull_request]
@@ -22,10 +24,6 @@ on: [pull_request]
permissions:
contents: read
-concurrency:
- group: ${{ github.workflow }}-${{ github.ref }}
- cancel-in-progress: ${{ github.ref != 'refs/heads/master' }}
-
jobs:
pre-commit:
name: Run pre-commit
@@ -35,20 +33,6 @@ jobs:
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
with:
persist-credentials: false
- - name: Setup Python
- uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0
- with:
- python-version: '3.13'
- architecture: 'x64'
- - name: Install dependencies
- run: |
- python -m pip install --upgrade pip
- pip install pre-commit
- - name: set PY
- run: echo "PY=$(python -VV | sha256sum | cut -d' ' -f1)" >> "$GITHUB_ENV"
- - uses: actions/cache@27d5ce7f107fe9357f9df03efb73ab90386fccae # v5.0.5
+ - uses: j178/prek-action@bdca6f102f98e2b4c7029491a53dfd366469e33d # v2.0.4
with:
- path: ~/.cache/pre-commit
- key: pre-commit|${{ env.PY }}|${{ hashFiles('.pre-commit-config.yaml') }}
- - name: Run pre-commit
- run: pre-commit run --all-files
+ extra-args: --all-files