This is an automated email from the ASF dual-hosted git repository.

jiayu pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/sedona-testing.git


The following commit(s) were added to refs/heads/main by this push:
     new 94255a6  pre-commit add actionlint and clean up workflows (#7)
94255a6 is described below

commit 94255a6f1e1be82f87c9edaa4dc9ff3f54aa28cf
Author: John Bampton <[email protected]>
AuthorDate: Fri Jun 6 09:39:28 2025 +1000

    pre-commit add actionlint and clean up workflows (#7)
    
    https://github.com/rhysd/actionlint
    
    https://github.com/rhysd/actionlint/blob/v1.7.7/docs/usage.md#pre-commit
---
 .github/labeler.yml              | 6 +++---
 .github/workflows/pre-commit.yml | 2 +-
 .pre-commit-config.yaml          | 6 ++++++
 3 files changed, 10 insertions(+), 4 deletions(-)

diff --git a/.github/labeler.yml b/.github/labeler.yml
index eeaa9ff..00f3294 100644
--- a/.github/labeler.yml
+++ b/.github/labeler.yml
@@ -18,6 +18,6 @@
 # https://github.com/actions/labeler
 documentation:
   - any:
-    - changed-files:
-      - any-glob-to-any-file:
-        - '**/*.md'
+      - changed-files:
+          - any-glob-to-any-file:
+              - '**/*.md'
diff --git a/.github/workflows/pre-commit.yml b/.github/workflows/pre-commit.yml
index 3dc8683..c584bc6 100644
--- a/.github/workflows/pre-commit.yml
+++ b/.github/workflows/pre-commit.yml
@@ -42,7 +42,7 @@ jobs:
           python -m pip install --upgrade pip
           pip install pre-commit
       - name: set PY
-        run: echo "PY=$(python -VV | sha256sum | cut -d' ' -f1)" >> $GITHUB_ENV
+        run: echo "PY=$(python -VV | sha256sum | cut -d' ' -f1)" >> 
"$GITHUB_ENV"
       - uses: actions/cache@v4
         with:
           path: ~/.cache/pre-commit
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index d5433cd..3115456 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -67,6 +67,12 @@ repos:
       - id: mixed-line-ending
       - id: trailing-whitespace
         args: [--markdown-linebreak-ext=md]
+  - repo: https://github.com/rhysd/actionlint
+    rev: v1.7.7
+    hooks:
+      - id: actionlint
+        name: run actionlint
+        description: lint GitHub Actions workflow files
   - repo: https://github.com/gitleaks/gitleaks
     rev: v8.27.0
     hooks:

Reply via email to