diff --git a/.github/workflows/remote-test.yml b/.github/workflows/remote-test.yml new file mode 100644 index 0000000..0159fb7 --- /dev/null +++ b/.github/workflows/remote-test.yml @@ -0,0 +1,26 @@ +name: Remote Test Trigger + +on: + pull_request: + +jobs: + trigger-remote-test: + runs-on: ubuntu-latest + steps: + - name: Trigger Remote Test Workflow + env: + GH_TOKEN: ${{ secrets.PASEO_RUNTIME_CI_PAT }} + run: | + curl -L \ + -X POST \ + -H "Accept: application/vnd.github+json" \ + -H "Authorization: Bearer $GH_TOKEN" \ + -H "X-GitHub-Api-Version: 2022-11-28" \ + https://api.github.com/repos/Zondax/paseo-runtime-test/actions/workflows/webhook-pr-trigger.yml/dispatches \ + -d '{ + "ref": "main", + "inputs": { + "target_repo": "https://github.com/paseo-network/runtimes", + "target_branch": "${{ github.head_ref }}" + } + }' \ No newline at end of file