Skip to content

Commit

Permalink
Try a different action to dispatch workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
qinsoon committed Jan 18, 2024
1 parent d9f2882 commit 2c5d0c0
Showing 1 changed file with 15 additions and 8 deletions.
23 changes: 15 additions & 8 deletions .github/workflows/binding-tests-extended.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,14 +23,21 @@ jobs:
needs: binding-refs
if: contains(github.event.pull_request.labels.*.name, 'PR-testing')
steps:
- name: Split owner/repo
id: split-repo
run: |
owner=$(echo "${{ needs.binding-refs.outputs.openjdk_binding_repo }}" | cut -d'/' -f1)
repo=$(echo "${{ needs.binding-refs.outputs.openjdk_binding_repo}} | cut -d'/' -f2")
echo "owner=$owner" >> $GITHUB_OUTPUT
echo "repo=$repo" >> $GITHUB_OUTPUT
- name: Invoke binding workflows
uses: aurelien-baudet/workflow-dispatch@v2
uses: convictional/trigger-workflow-[email protected]
with:
repo: ${{ needs.binding-refs.outputs.openjdk_binding_repo }}
owner: ${{ steps.split-repo.outputs.owner }}
repo: ${{ steps.split-repo.outputs.repo }}
ref: ${{ needs.binding-refs.outputs.openjdk_binding_ref }}
token: ${{ secrets.GITHUB_TOKEN }}
workflow: test-core-extended.yml
inputs: '{ "mmtk-core-repo": "${{ github.repository }}", "mmtk-core-ref": "${{ github.sha }}" }'
wait-for-completion: true
wait-for-completion-timeout: 6h
wait-for-completion-interval: 5m
github_token: ${{ secrets.GITHUB_TOKEN }}
workflow_file_name: test-core-extended.yml
client_payload: '{ "mmtk-core-repo": "${{ github.repository }}", "mmtk-core-ref": "${{ github.sha }}" }'
wait_workflow: true
wait_interval: 300

0 comments on commit 2c5d0c0

Please sign in to comment.