diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 824bd0cb0e..874d4b99ee 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -28,8 +28,20 @@ jobs: if [ "${SHAHEAD}" != "${SHAINPUT}" ]; then echo "sha input from slash command does not equal the head sha" ; exit 1 else echo "shas are equal" fi + echo ======== + echo \"${{ github.event.client_payload.pull_request.head.repo.full_name }}\" + echo \"${{ github.event.client_payload.pull_request.head.ref }}\" - - uses: actions/checkout@v3 + - name: Checkout Code (Repository Dispatch Event) + if: (github.event_name == 'repository_dispatch') + uses: actions/checkout@v3 + with: + repository: ${{ github.event.client_payload.pull_request.head.repo.full_name }} + ref: ${{ github.event.client_payload.pull_request.head.ref }} + + - name: Checkout Code (Pull Request Event) + if: (github.event_name == 'pull_request') + uses: actions/checkout@v3 - uses: actions/setup-go@v4 with: