Skip to content

Commit

Permalink
add remote test curl
Browse files Browse the repository at this point in the history
  • Loading branch information
raynaudoe committed Jul 8, 2024
1 parent 77cb22d commit a55ec0e
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/remote-test.yml
Original file line number Diff line number Diff line change
@@ -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 }}"
}
}'

0 comments on commit a55ec0e

Please sign in to comment.