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

Skip to content

Commit 884389c

Browse files
author
Jacek Gębal
committed
Update build process to trigger build on two repositories.
1 parent 95ef111 commit 884389c

1 file changed

Lines changed: 10 additions & 7 deletions

File tree

.github/workflows/build.yml

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -82,14 +82,17 @@ jobs:
8282
id: project_version
8383
run: echo "version=$(mvn help:evaluate -Dexpression=project.version -q -DforceStdout)" >> $GITHUB_OUTPUT
8484

85-
- name: Trigger utPLSQL-cli snapshot build
85+
- name: Trigger snapshot builds
8686
if: github.event_name != 'pull_request'
87-
uses: peter-evans/repository-dispatch@v3
88-
with:
89-
token: ${{ secrets.CLI_REPO_TOKEN }}
90-
repository: utPLSQL/utPLSQL-cli
91-
event-type: utPLSQL-java-api-build
92-
client-payload: '{"api_version": "${{ steps.project_version.outputs.version }}"}'
87+
env:
88+
GH_TOKEN: ${{ secrets.CLI_REPO_TOKEN }}
89+
run: |
90+
for repo in utPLSQL/utPLSQL-cli utPLSQL/utPLSQL-maven-plugin; do
91+
gh api repos/$repo/dispatches \
92+
--method POST \
93+
--field event_type=utPLSQL-java-api-build \
94+
--field client_payload='{"api_version":"${{ steps.project_version.outputs.version }}"}'
95+
done
9396
9497
- name: Publish unit test results
9598
uses: EnricoMi/publish-unit-test-result-action@v2

0 commit comments

Comments
 (0)