File tree 4 files changed +48
-5
lines changed
4 files changed +48
-5
lines changed Original file line number Diff line number Diff line change @@ -78,11 +78,21 @@ jobs:
78
78
file : ./target/site/jacoco/jacoco.xml
79
79
flags : unittests
80
80
81
- trigger-dep-build :
82
- name : Trigger downstream builds
81
+ trigger-dep-builds-v2 :
82
+ name : Trigger downstream builds for v2
83
83
needs : [build]
84
84
# Only for pushes to default branch
85
85
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
87
87
secrets :
88
88
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
+
Original file line number Diff line number Diff line change 1
1
# Reusable workflow; extracted for maintainability
2
2
3
- name : Trigger downstream builds
3
+ name : Trigger downstream Jackson 2.x builds
4
4
on :
5
5
workflow_call :
6
6
secrets :
7
7
token :
8
8
required : true
9
9
10
10
jobs :
11
- trigger-dep-build :
11
+ trigger-dep-build-v2 :
12
12
name : Trigger downstream builds
13
13
runs-on : ubuntu-latest
14
14
Original file line number Diff line number Diff line change
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" }'
Original file line number Diff line number Diff line change @@ -23,3 +23,6 @@ syntax: glob
23
23
* .iws
24
24
/.idea /
25
25
dependency-reduced-pom.xml
26
+
27
+ # Other/local
28
+ /gh-workflows
You can’t perform that action at this time.
0 commit comments