Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/auto-jdk-matrix.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -48,7 +48,7 @@ jobs:
java-version: ${{ matrix.jdk }}
distribution: 'temurin'
java-package: jdk
architecture: x64
architecture: x64

- name: Echo Java Version
run: >
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/auto-os-matrix.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -58,7 +58,7 @@ jobs:
java-version: ${{ matrix.jdk }}
distribution: 'temurin'
java-package: jdk
architecture: x64
architecture: x64

- name: Echo Java Version
run: >
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
22 changes: 11 additions & 11 deletions .github/workflows/javadoc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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

Expand Down