diff --git a/.github/workflows/on-pr.yml b/.github/workflows/on-pr.yml index 478a9263f..945c41397 100644 --- a/.github/workflows/on-pr.yml +++ b/.github/workflows/on-pr.yml @@ -25,18 +25,24 @@ jobs: runs-on: ubuntu-latest needs: build-and-test if: github.event.pull_request.head.ref == 'uplift' + strategy: + matrix: + include: + - target-repo: 'tenstorrent/tt-forge-fe' + workflow-name: 'build-and-test.yml' + - target-repo: 'tenstorrent/tt-torch' + workflow-name: 'on-pr.yml' env: - GITHUB_TOKEN: ${{ secrets.GH_TOKEN }} - TARGET_REPO: tenstorrent/tt-forge-fe - WORKFLOW_NAME: build-and-test.yml + GITHUB_TOKEN: ${{ secrets.GH_TOKEN }} + TARGET_REPO: ${{ matrix.target-repo }} + WORKFLOW_NAME: ${{ matrix.workflow-name }} steps: - - name: Trigger ${{ env.TARGET_REPO }} + - name: Trigger ${{ env.TARGET_REPO }} tests shell: bash run: | gh workflow run ${{ env.WORKFLOW_NAME }} \ --repo ${{ env.TARGET_REPO }} --ref main \ - --field test_mark=push \ --field mlir_override=${{ github.event.pull_request.head.sha }} gh run list --workflow=${{ env.WORKFLOW_NAME }} --repo ${{ env.TARGET_REPO }} --limit 1 - echo "Triggered ${{ env.TARGET_REPO }}" - echo "### Triggered [${{ env.TARGET_REPO }}](https://github.com/${{ env.TARGET_REPO }}/actions/workflows/${{ env.WORKFLOW_NAME }}) :rocket:" >> $GITHUB_STEP_SUMMARY + echo "Triggered ${{ env.TARGET_REPO }} with tt-mlir ${{ github.event.pull_request.head.sha }}" + echo "### Triggered [${{ env.TARGET_REPO }}](https://github.com/${{ env.TARGET_REPO }}/actions/workflows/${{ env.WORKFLOW_NAME }}) with tt-mlir ${{ github.event.pull_request.head.sha }} :rocket:" >> $GITHUB_STEP_SUMMARY