Skip to content

Commit 3161b9d

Browse files
committed
Start building v3 dep builds
1 parent 54429af commit 3161b9d

File tree

4 files changed

+48
-5
lines changed

4 files changed

+48
-5
lines changed

.github/workflows/main.yml

+13-3
Original file line numberDiff line numberDiff line change
@@ -78,11 +78,21 @@ jobs:
7878
file: ./target/site/jacoco/jacoco.xml
7979
flags: unittests
8080

81-
trigger-dep-build:
82-
name: Trigger downstream builds
81+
trigger-dep-builds-v2:
82+
name: Trigger downstream builds for v2
8383
needs: [build]
8484
# Only for pushes to default branch
8585
if: ${{ github.event_name == 'push' && github.ref_name == github.event.repository.default_branch }}
86-
uses: ./.github/workflows/trigger_dep_builds.yml
86+
uses: ./.github/workflows/trigger_dep_builds_v2.yml
8787
secrets:
8888
token: ${{ secrets.REPO_DISPATCH }}
89+
90+
trigger-dep-builds-v3:
91+
name: Trigger downstream builds for v3
92+
needs: [build]
93+
# Only for pushes to master (v3) branch
94+
if: ${{ github.event_name == 'push' && github.ref_name == 'master' }}
95+
uses: ./.github/workflows/trigger_dep_builds_v3.yml
96+
secrets:
97+
token: ${{ secrets.REPO_DISPATCH }}
98+

.github/workflows/trigger_dep_builds.yml renamed to .github/workflows/trigger_dep_builds_v2.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
# Reusable workflow; extracted for maintainability
22

3-
name: Trigger downstream builds
3+
name: Trigger downstream Jackson 2.x builds
44
on:
55
workflow_call:
66
secrets:
77
token:
88
required: true
99

1010
jobs:
11-
trigger-dep-build:
11+
trigger-dep-build-v2:
1212
name: Trigger downstream builds
1313
runs-on: ubuntu-latest
1414

Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
# Reusable workflow; extracted for maintainability
2+
3+
name: Trigger downstream Jackson 3.x builds
4+
on:
5+
workflow_call:
6+
secrets:
7+
token:
8+
required: true
9+
10+
jobs:
11+
trigger-dep-build-v3:
12+
name: Trigger downstream builds
13+
runs-on: ubuntu-latest
14+
15+
strategy:
16+
fail-fast: false
17+
matrix:
18+
repo:
19+
- 'FasterXML/jackson-databind'
20+
- 'FasterXML/jackson-jr'
21+
22+
steps:
23+
- name: Repository dispatch
24+
uses: peter-evans/repository-dispatch@v3
25+
with:
26+
token: ${{ secrets.token }}
27+
repository: ${{ matrix.repo }}
28+
event-type: jackson-core-pushed-v3
29+
# Could push information on what was built but not yet
30+
client-payload: '{"version": "N/A" }'

.gitignore

+3
Original file line numberDiff line numberDiff line change
@@ -23,3 +23,6 @@ syntax: glob
2323
*.iws
2424
/.idea/
2525
dependency-reduced-pom.xml
26+
27+
# Other/local
28+
/gh-workflows

0 commit comments

Comments
 (0)