Skip to content

Commit 0b56ded

Browse files
authored
Merge pull request #712 from apache/triggers
CI workflows should run if pom.xml or workflow yaml files changed
2 parents 07c5ae9 + 128323d commit 0b56ded

File tree

4 files changed

+18
-18
lines changed

4 files changed

+18
-18
lines changed

.github/workflows/auto-jdk-matrix.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ on:
44
push:
55
branches: [ 'main', '[0-9]+.[0-9]+.[Xx]' ]
66
pull_request:
7-
paths-ignore: [ '**/*.html', '**/*.md', '**/*.txt', '**/*.xml', '**/*.yaml', '**/*.yml', '**/LICENSE', '**/NOTICE' ]
7+
paths-ignore: [ '**/*.html', '**/*.md', '**/*.txt', '**/LICENSE', '**/NOTICE' ]
88
# The branches below must be a subset of the branches above
99
branches: [ 'main', '[0-9]+.[0-9]+.[Xx]' ]
1010
workflow_dispatch:
@@ -48,7 +48,7 @@ jobs:
4848
java-version: ${{ matrix.jdk }}
4949
distribution: 'temurin'
5050
java-package: jdk
51-
architecture: x64
51+
architecture: x64
5252

5353
- name: Echo Java Version
5454
run: >

.github/workflows/auto-os-matrix.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@ name: Auto OS Matrix Test & Install
22

33
on:
44
push:
5-
paths-ignore: [ '**/*.html', '**/*.md', '**/*.txt', '**/*.xml', '**/*.yaml', '**/*.yml', '**/LICENSE', '**/NOTICE' ]
5+
paths-ignore: [ '**/*.html', '**/*.md', '**/*.txt', '**/LICENSE', '**/NOTICE' ]
66
branches: [ 'main', '[0-9]+.[0-9]+.[Xx]' ]
77
pull_request:
8-
paths-ignore: [ '**/*.html', '**/*.md', '**/*.txt', '**/*.xml', '**/*.yaml', '**/*.yml', '**/LICENSE', '**/NOTICE' ]
8+
paths-ignore: [ '**/*.html', '**/*.md', '**/*.txt', '**/LICENSE', '**/NOTICE' ]
99
# The branches below must be a subset of the branches above
1010
branches: [ 'main', '[0-9]+.[0-9]+.[Xx]' ]
1111
workflow_dispatch:
@@ -58,7 +58,7 @@ jobs:
5858
java-version: ${{ matrix.jdk }}
5959
distribution: 'temurin'
6060
java-package: jdk
61-
architecture: x64
61+
architecture: x64
6262

6363
- name: Echo Java Version
6464
run: >
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@ name: CPP SerDe Compatibility Test
22

33
on:
44
push:
5-
paths-ignore: [ '**/*.html', '**/*.md', '**/*.txt', '**/*.xml', '**/*.yaml', '**/*.yml', '**/LICENSE', '**/NOTICE' ]
5+
paths-ignore: [ '**/*.html', '**/*.md', '**/*.txt', '**/LICENSE', '**/NOTICE' ]
66
branches: [ 'main', '[0-9]+.[0-9]+.[Xx]' ]
77
pull_request:
8-
paths-ignore: [ '**/*.html', '**/*.md', '**/*.txt', '**/*.xml', '**/*.yaml', '**/*.yml', '**/LICENSE', '**/NOTICE' ]
8+
paths-ignore: [ '**/*.html', '**/*.md', '**/*.txt', '**/LICENSE', '**/NOTICE' ]
99
# The branches below must be a subset of the branches above
1010
branches: [ 'main', '[0-9]+.[0-9]+.[Xx]' ]
1111
workflow_dispatch:

.github/workflows/javadoc.yml

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -41,38 +41,38 @@ jobs:
4141
TAG_NAME: ${{ github.event.inputs.tag_ref }}
4242
run: |
4343
if [ -z "$TAG_NAME" ]; then echo "ERROR: No tag specified"; exit 1; fi
44-
44+
4545
# 1. Initialize error tracking
4646
EXIT_CODE=0
47-
47+
4848
# 2. Configure Git Identity
4949
git config user.email "noreply@github.com"
5050
git config user.name "github-actions[bot]"
51-
51+
5252
# 3. Ensure gh-pages exists and is fetched
5353
echo "ECHO: git fetch origin gh-pages"
5454
git fetch origin gh-pages
55-
55+
5656
# 4. Create worktree for the gh-pages branch in a separate folder
5757
echo "ECHO: git worktree add -B gh-pages ./gh-pages-dir origin/gh-pages"
5858
git worktree add -B gh-pages ./gh-pages-dir origin/gh-pages
59-
59+
6060
# 5. Deployment Logic in a subshell to capture exit code
6161
(
6262
set -e
6363
TARGET_PATH="gh-pages-dir/docs/$TAG_NAME"
6464
mkdir -p "$TARGET_PATH"
65-
65+
6666
echo "ECHO: cp -a target/site/apidocs/. $TARGET_PATH/"
6767
cp -a target/site/apidocs/. "$TARGET_PATH/"
6868
cd gh-pages-dir
69-
69+
7070
echo "ECHO: git pull origin gh-pages --rebase"
7171
git pull origin gh-pages --rebase
72-
72+
7373
echo "git add docs/$TAG_NAME"
7474
git add "docs/$TAG_NAME"
75-
75+
7676
if git diff --staged --quiet; then
7777
echo "No changes detected for Javadoc $TAG_NAME."
7878
else
@@ -83,11 +83,11 @@ jobs:
8383
git push origin gh-pages
8484
fi
8585
) || EXIT_CODE=$?
86-
86+
8787
# 6. Cleanup (Always runs)
8888
echo "ECHO: Cleaning up worktree..."
8989
git worktree remove --force ./gh-pages-dir || true
90-
90+
9191
# 7. Final exit based on subshell success
9292
exit $EXIT_CODE
9393

0 commit comments

Comments
 (0)