Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 5944b1f

Browse files
committed
Adding dispatch of dependant projects after deployments
1 parent 877ea9c commit 5944b1f

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

.github/workflows/build.yml

+18
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,24 @@ jobs:
108108
PACKAGECLOUD_TOKEN: ${{secrets.PACKAGECLOUD_TOKEN}}
109109
run: ./gradlew uploadArchives
110110

111+
dispatch:
112+
name: Dispatch downstream builds
113+
concurrency: trigger
114+
needs: [ build, deploy ]
115+
runs-on: ubuntu-latest
116+
if: |
117+
github.repository == 'utPLSQL/utPLSQL-java-api' && github.base_ref == null && github.ref == 'refs/heads/develop'
118+
strategy:
119+
matrix:
120+
repo: ['utPLSQL/utPLSQL-maven-plugin', 'utPLSQL/utPLSQL-cli']
121+
steps:
122+
- name: Repository Dispatch
123+
uses: peter-evans/repository-dispatch@v1
124+
with:
125+
token: ${{ secrets.API_TOKEN_GITHUB }}
126+
repository: ${{ matrix.repo }}
127+
event-type: utPLSQL-java-api-build
128+
111129
slack-workflow-status:
112130
if: always()
113131
name: Post Workflow Status To Slack

0 commit comments

Comments
 (0)