You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@datasketches.apache.org by ti...@apache.org on 2026/01/07 10:04:37 UTC
(datasketches-java) 01/01: CI workflows should run if pom.xml or workflow yaml files changed
This is an automated email from the ASF dual-hosted git repository.
tison pushed a commit to branch triggers
in repository https://gitbox.apache.org/repos/asf/datasketches-java.git
commit 128323d2545bc16d2f0c2aa924c6f56ac3899276
Author: tison <wa...@gmail.com>
AuthorDate: Wed Jan 7 18:04:19 2026 +0800
CI workflows should run if pom.xml or workflow yaml files changed
Signed-off-by: tison <wa...@gmail.com>
---
.github/workflows/auto-jdk-matrix.yml | 4 ++--
.github/workflows/auto-os-matrix.yml | 6 +++---
.../{check_cpp_files.yml => cpp-serde-compat.yml} | 4 ++--
.github/workflows/javadoc.yml | 22 +++++++++++-----------
4 files changed, 18 insertions(+), 18 deletions(-)
diff --git a/.github/workflows/auto-jdk-matrix.yml b/.github/workflows/auto-jdk-matrix.yml
index 0d387c944..2fb44a079 100644
--- a/.github/workflows/auto-jdk-matrix.yml
+++ b/.github/workflows/auto-jdk-matrix.yml
@@ -4,7 +4,7 @@ on:
push:
branches: [ 'main', '[0-9]+.[0-9]+.[Xx]' ]
pull_request:
- paths-ignore: [ '**/*.html', '**/*.md', '**/*.txt', '**/*.xml', '**/*.yaml', '**/*.yml', '**/LICENSE', '**/NOTICE' ]
+ paths-ignore: [ '**/*.html', '**/*.md', '**/*.txt', '**/LICENSE', '**/NOTICE' ]
# The branches below must be a subset of the branches above
branches: [ 'main', '[0-9]+.[0-9]+.[Xx]' ]
workflow_dispatch:
@@ -48,7 +48,7 @@ jobs:
java-version: ${{ matrix.jdk }}
distribution: 'temurin'
java-package: jdk
- architecture: x64
+ architecture: x64
- name: Echo Java Version
run: >
diff --git a/.github/workflows/auto-os-matrix.yml b/.github/workflows/auto-os-matrix.yml
index df3c7135f..0cc35c951 100644
--- a/.github/workflows/auto-os-matrix.yml
+++ b/.github/workflows/auto-os-matrix.yml
@@ -2,10 +2,10 @@ name: Auto OS Matrix Test & Install
on:
push:
- paths-ignore: [ '**/*.html', '**/*.md', '**/*.txt', '**/*.xml', '**/*.yaml', '**/*.yml', '**/LICENSE', '**/NOTICE' ]
+ paths-ignore: [ '**/*.html', '**/*.md', '**/*.txt', '**/LICENSE', '**/NOTICE' ]
branches: [ 'main', '[0-9]+.[0-9]+.[Xx]' ]
pull_request:
- paths-ignore: [ '**/*.html', '**/*.md', '**/*.txt', '**/*.xml', '**/*.yaml', '**/*.yml', '**/LICENSE', '**/NOTICE' ]
+ paths-ignore: [ '**/*.html', '**/*.md', '**/*.txt', '**/LICENSE', '**/NOTICE' ]
# The branches below must be a subset of the branches above
branches: [ 'main', '[0-9]+.[0-9]+.[Xx]' ]
workflow_dispatch:
@@ -58,7 +58,7 @@ jobs:
java-version: ${{ matrix.jdk }}
distribution: 'temurin'
java-package: jdk
- architecture: x64
+ architecture: x64
- name: Echo Java Version
run: >
diff --git a/.github/workflows/check_cpp_files.yml b/.github/workflows/cpp-serde-compat.yml
similarity index 83%
rename from .github/workflows/check_cpp_files.yml
rename to .github/workflows/cpp-serde-compat.yml
index 694aa139d..496e11c31 100644
--- a/.github/workflows/check_cpp_files.yml
+++ b/.github/workflows/cpp-serde-compat.yml
@@ -2,10 +2,10 @@ name: CPP SerDe Compatibility Test
on:
push:
- paths-ignore: [ '**/*.html', '**/*.md', '**/*.txt', '**/*.xml', '**/*.yaml', '**/*.yml', '**/LICENSE', '**/NOTICE' ]
+ paths-ignore: [ '**/*.html', '**/*.md', '**/*.txt', '**/LICENSE', '**/NOTICE' ]
branches: [ 'main', '[0-9]+.[0-9]+.[Xx]' ]
pull_request:
- paths-ignore: [ '**/*.html', '**/*.md', '**/*.txt', '**/*.xml', '**/*.yaml', '**/*.yml', '**/LICENSE', '**/NOTICE' ]
+ paths-ignore: [ '**/*.html', '**/*.md', '**/*.txt', '**/LICENSE', '**/NOTICE' ]
# The branches below must be a subset of the branches above
branches: [ 'main', '[0-9]+.[0-9]+.[Xx]' ]
workflow_dispatch:
diff --git a/.github/workflows/javadoc.yml b/.github/workflows/javadoc.yml
index 070543273..e1995f546 100644
--- a/.github/workflows/javadoc.yml
+++ b/.github/workflows/javadoc.yml
@@ -41,38 +41,38 @@ jobs:
TAG_NAME: ${{ github.event.inputs.tag_ref }}
run: |
if [ -z "$TAG_NAME" ]; then echo "ERROR: No tag specified"; exit 1; fi
-
+
# 1. Initialize error tracking
EXIT_CODE=0
-
+
# 2. Configure Git Identity
git config user.email "noreply@github.com"
git config user.name "github-actions[bot]"
-
+
# 3. Ensure gh-pages exists and is fetched
echo "ECHO: git fetch origin gh-pages"
git fetch origin gh-pages
-
+
# 4. Create worktree for the gh-pages branch in a separate folder
echo "ECHO: git worktree add -B gh-pages ./gh-pages-dir origin/gh-pages"
git worktree add -B gh-pages ./gh-pages-dir origin/gh-pages
-
+
# 5. Deployment Logic in a subshell to capture exit code
(
set -e
TARGET_PATH="gh-pages-dir/docs/$TAG_NAME"
mkdir -p "$TARGET_PATH"
-
+
echo "ECHO: cp -a target/site/apidocs/. $TARGET_PATH/"
cp -a target/site/apidocs/. "$TARGET_PATH/"
cd gh-pages-dir
-
+
echo "ECHO: git pull origin gh-pages --rebase"
git pull origin gh-pages --rebase
-
+
echo "git add docs/$TAG_NAME"
git add "docs/$TAG_NAME"
-
+
if git diff --staged --quiet; then
echo "No changes detected for Javadoc $TAG_NAME."
else
@@ -83,11 +83,11 @@ jobs:
git push origin gh-pages
fi
) || EXIT_CODE=$?
-
+
# 6. Cleanup (Always runs)
echo "ECHO: Cleaning up worktree..."
git worktree remove --force ./gh-pages-dir || true
-
+
# 7. Final exit based on subshell success
exit $EXIT_CODE
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@datasketches.apache.org
For additional commands, e-mail: commits-help@datasketches.apache.org