Skip to content

Commit

Permalink
Start building v3 dep builds
Browse files Browse the repository at this point in the history
  • Loading branch information
cowtowncoder committed Jun 13, 2024
1 parent 54429af commit 3161b9d
Show file tree
Hide file tree
Showing 4 changed files with 48 additions and 5 deletions.
16 changes: 13 additions & 3 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -78,11 +78,21 @@ jobs:
file: ./target/site/jacoco/jacoco.xml
flags: unittests

trigger-dep-build:
name: Trigger downstream builds
trigger-dep-builds-v2:
name: Trigger downstream builds for v2
needs: [build]
# Only for pushes to default branch
if: ${{ github.event_name == 'push' && github.ref_name == github.event.repository.default_branch }}
uses: ./.github/workflows/trigger_dep_builds.yml
uses: ./.github/workflows/trigger_dep_builds_v2.yml
secrets:
token: ${{ secrets.REPO_DISPATCH }}

trigger-dep-builds-v3:
name: Trigger downstream builds for v3
needs: [build]
# Only for pushes to master (v3) branch
if: ${{ github.event_name == 'push' && github.ref_name == 'master' }}
uses: ./.github/workflows/trigger_dep_builds_v3.yml
secrets:
token: ${{ secrets.REPO_DISPATCH }}

Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
# Reusable workflow; extracted for maintainability

name: Trigger downstream builds
name: Trigger downstream Jackson 2.x builds
on:
workflow_call:
secrets:
token:
required: true

jobs:
trigger-dep-build:
trigger-dep-build-v2:
name: Trigger downstream builds
runs-on: ubuntu-latest

Expand Down
30 changes: 30 additions & 0 deletions .github/workflows/trigger_dep_builds_v3.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
# Reusable workflow; extracted for maintainability

name: Trigger downstream Jackson 3.x builds
on:
workflow_call:
secrets:
token:
required: true

jobs:
trigger-dep-build-v3:
name: Trigger downstream builds
runs-on: ubuntu-latest

strategy:
fail-fast: false
matrix:
repo:
- 'FasterXML/jackson-databind'
- 'FasterXML/jackson-jr'

steps:
- name: Repository dispatch
uses: peter-evans/repository-dispatch@v3
with:
token: ${{ secrets.token }}
repository: ${{ matrix.repo }}
event-type: jackson-core-pushed-v3
# Could push information on what was built but not yet
client-payload: '{"version": "N/A" }'
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -23,3 +23,6 @@ syntax: glob
*.iws
/.idea/
dependency-reduced-pom.xml

# Other/local
/gh-workflows

0 comments on commit 3161b9d

Please sign in to comment.