Skip to content

Commit

Permalink
Try to implement part of databind/4516: trigger repository dispatch o…
Browse files Browse the repository at this point in the history
…n "merge to main" (#1290)
  • Loading branch information
cowtowncoder committed May 7, 2024
1 parent 65105cd commit 838e017
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions .github/workflows/main.yml
Expand Up @@ -77,3 +77,24 @@ jobs:
token: ${{ secrets.CODECOV_TOKEN }}
file: ./target/site/jacoco/jacoco.xml
flags: unittests

trigger-dep-build:
name: Trigger downstream builds
needs: [build]
if: ${{ github.event_name == 'push' }}
runs-on: ubuntu-latest

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

steps:
- name: Repository dispatch
uses: peter-evans/repository-dispatch@v3
with:
# Does regular token work within same org?
token: ${{ secrets.GITHUB_TOKEN }}
repository: ${{ matrix.repo }}
event-type: jackson-core-pushed
client-payload: '{"version": "${{ needs.resolve-tag.outputs.release-tag}}"}'

0 comments on commit 838e017

Please sign in to comment.