Skip to content

Commit 86109e3

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

1 file changed

Lines changed: 16 additions & 10 deletions

File tree

.github/workflows/build.yml

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

85-
- name: Trigger snapshot builds
85+
- name: Trigger utPLSQL-cli snapshot build
8686
if: github.event_name != 'pull_request'
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
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 }}"}'
93+
94+
- name: Trigger utPLSQL-maven-plugin snapshot build
95+
if: github.event_name != 'pull_request'
96+
uses: peter-evans/repository-dispatch@v3
97+
with:
98+
token: ${{ secrets.CLI_REPO_TOKEN }}
99+
repository: utPLSQL/utPLSQL-maven-plugin
100+
event-type: utPLSQL-java-api-build
101+
client-payload: '{"api_version": "${{ steps.project_version.outputs.version }}"}'
96102

97103
- name: Publish unit test results
98104
uses: EnricoMi/publish-unit-test-result-action@v2

0 commit comments

Comments
 (0)