Skip to content

Commit 181a009

Browse files
committed
Try a different action to dispatch workflow
1 parent d9f2882 commit 181a009

File tree

1 file changed

+17
-8
lines changed

1 file changed

+17
-8
lines changed

.github/workflows/binding-tests-extended.yml

Lines changed: 17 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ concurrency:
1111
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
1212
cancel-in-progress: true
1313

14+
permissions: write-all
15+
1416
jobs:
1517
binding-refs:
1618
if: contains(github.event.pull_request.labels.*.name, 'PR-testing')
@@ -23,14 +25,21 @@ jobs:
2325
needs: binding-refs
2426
if: contains(github.event.pull_request.labels.*.name, 'PR-testing')
2527
steps:
28+
- name: Split owner/repo
29+
id: split-repo
30+
run: |
31+
owner=$(echo "${{ needs.binding-refs.outputs.openjdk_binding_repo }}" | cut -d'/' -f1)
32+
repo=$(echo "${{ needs.binding-refs.outputs.openjdk_binding_repo}}" | cut -d'/' -f2)
33+
echo "owner=$owner" >> $GITHUB_OUTPUT
34+
echo "repo=$repo" >> $GITHUB_OUTPUT
2635
- name: Invoke binding workflows
27-
uses: aurelien-baudet/workflow-dispatch@v2
36+
uses: convictional/trigger-workflow-and-wait@v1.6.5
2837
with:
29-
repo: ${{ needs.binding-refs.outputs.openjdk_binding_repo }}
38+
owner: ${{ steps.split-repo.outputs.owner }}
39+
repo: ${{ steps.split-repo.outputs.repo }}
3040
ref: ${{ needs.binding-refs.outputs.openjdk_binding_ref }}
31-
token: ${{ secrets.GITHUB_TOKEN }}
32-
workflow: test-core-extended.yml
33-
inputs: '{ "mmtk-core-repo": "${{ github.repository }}", "mmtk-core-ref": "${{ github.sha }}" }'
34-
wait-for-completion: true
35-
wait-for-completion-timeout: 6h
36-
wait-for-completion-interval: 5m
41+
github_token: ${{ secrets.GITHUB_TOKEN }}
42+
workflow_file_name: test-core-extended.yml
43+
client_payload: '{ "mmtk-core-repo": "${{ github.repository }}", "mmtk-core-ref": "${{ github.sha }}" }'
44+
wait_workflow: true
45+
wait_interval: 300

0 commit comments

Comments
 (0)