Skip to content

Commit

Permalink
Add pr dispatch (#2)
Browse files Browse the repository at this point in the history
  • Loading branch information
shink authored Dec 4, 2024
1 parent 16676fd commit 537d038
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/out-of-tree-test-infra.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Dispatch PR Events to Out-of-tree TestInfra

on:
pull_request:

jobs:
dispatch-event:
if: github.repository_owner == 'pytorch'
name: Dispatch events to the out-of-tree test infra repo
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Create a repository dispatch event
uses: peter-evans/repository-dispatch@v3
with:
token: ${{ secrets.COSDT_BOT_TOKEN }}
repository: cosdt/pytorch-integration-tests
event-type: pytorch-event
client-payload: |-
{
"owner": "${{ github.repository_owner }}",
"repo": "${{ github.repository }}",
"event_name": "${{ github.event_name }}",
"pull_request": "${{ toJson(github.event.pull_request) }}"
}

0 comments on commit 537d038

Please sign in to comment.