Skip to content

Commit

Permalink
Fix remote test trigger
Browse files Browse the repository at this point in the history
  • Loading branch information
raynaudoe committed Aug 1, 2024
1 parent 7cf9ee9 commit 603b4bb
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions .github/workflows/remote-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
env:
GH_TOKEN: ${{ secrets.PASEO_RUNTIME_CI_PAT }}
run: |
curl -L \
response=$(curl -L \
-X POST \
-H "Accept: application/vnd.github+json" \
-H "Authorization: Bearer $GH_TOKEN" \
Expand All @@ -21,6 +21,11 @@ jobs:
"ref": "main",
"inputs": {
"target_repo": "https://github.com/${{ github.repository }}",
"target_branch": "${{ github.head_ref }}"
"target_branch": "${{ github.head_ref }}",
"pr_number": "${{ github.event.pull_request.number }}"
}
}'
}' -w "%{http_code}" -o /dev/null)
if [ "$response" != "204" ]; then
echo "Failed to trigger remote test. HTTP status code: $response"
exit 1
fi

0 comments on commit 603b4bb

Please sign in to comment.