@@ -11,6 +11,8 @@ concurrency:
11
11
group : ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
12
12
cancel-in-progress : true
13
13
14
+ permissions : write-all
15
+
14
16
jobs :
15
17
binding-refs :
16
18
if : contains(github.event.pull_request.labels.*.name, 'PR-testing')
@@ -23,14 +25,21 @@ jobs:
23
25
needs : binding-refs
24
26
if : contains(github.event.pull_request.labels.*.name, 'PR-testing')
25
27
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
26
35
- name : Invoke binding workflows
27
- uses : aurelien-baudet/ workflow-dispatch@v2
36
+ uses : convictional/trigger- workflow-and-wait@v1.6.5
28
37
with :
29
- repo : ${{ needs.binding-refs.outputs.openjdk_binding_repo }}
38
+ owner : ${{ steps.split-repo.outputs.owner }}
39
+ repo : ${{ steps.split-repo.outputs.repo }}
30
40
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