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

critas pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/iotdb-docs.git


The following commit(s) were added to refs/heads/main by this push:
     new 384b9db0 add check (#555)
384b9db0 is described below

commit 384b9db08a589af02d1c170eaa12b63c0ae40e86
Author: CritasWang <[email protected]>
AuthorDate: Fri Feb 14 15:56:47 2025 +0800

    add check (#555)
    
    * add check
    
    * change name
---
 .github/workflows/alioss-check.yml | 38 ++++++++++++++++++++++++++++++++++++++
 1 file changed, 38 insertions(+)

diff --git a/.github/workflows/alioss-check.yml 
b/.github/workflows/alioss-check.yml
new file mode 100644
index 00000000..cfa696fb
--- /dev/null
+++ b/.github/workflows/alioss-check.yml
@@ -0,0 +1,38 @@
+name: Check alioss in Changed Files
+
+on:
+  push:
+    branches:
+      - main
+  pull_request:
+    branches:
+      - main
+  # allow manually run the action:
+  workflow_dispatch:
+
+jobs:
+  todo-check:
+    runs-on: ubuntu-latest
+
+    steps:
+      - name: Checkout code
+        uses: actions/checkout@v4
+
+      - name: Check for alioss in changed files
+        run: |
+          # Fetch the target branch
+          git fetch origin $GITHUB_BASE_REF
+          
+          git switch -c check_branch
+          
+          # Get the diff of the changes
+          DIFF=$(git diff origin/$GITHUB_BASE_REF check_branch)
+          
+  
+          # Check the diff for alioss
+          if echo "$DIFF" | grep -Eq '^\+.*(alioss)'; then
+            echo "alioss found in the changes. Please use upload to 
src/.vuepress/public/img."
+            # exit 1
+          else
+            echo "No alioss found in changed content."
+          fi

Reply via email to