Skip to content

Commit 40bf7d3

Browse files
authored
Update trigger-test.yml
1 parent b8789dc commit 40bf7d3

File tree

1 file changed

+5
-15
lines changed

1 file changed

+5
-15
lines changed

.github/workflows/trigger-test.yml

Lines changed: 5 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
name: Trigger Private Repo
22
on:
3-
push:
43
pull_request:
54

65
jobs:
@@ -27,20 +26,11 @@ jobs:
2726
-H "Accept: application/vnd.github+json" \
2827
-H "Authorization: Bearer ${{ secrets.PRIVATE_REPO_PAT }}" \
2928
-H "X-GitHub-Api-Version: 2022-11-28" \
30-
https://api.github.com/repos/YOUR_ORG/PRIVATE_REPO/dispatches \
29+
https://api.github.com/repos/locusrobotics/locus_orbbec_ros2/dispatches \
3130
-d '{
3231
"event_type":"trigger-from-public",
3332
"client_payload":{
34-
"origin_repo":"${{ github.repository }}",
35-
"origin_repo_url":"${{ github.repositoryUrl }}",
36-
"ref":"${{ github.ref }}",
37-
"ref_name":"${{ github.ref_name }}",
38-
"ref_type":"${{ github.ref_type }}",
39-
"semver":"${{ steps.semver.outputs.semver }}",
40-
"is_semver":"${{ steps.semver.outputs.is_semver }}",
41-
"sha":"${{ github.sha }}",
42-
"event_name":"${{ github.event_name }}",
43-
"actor":"${{ github.actor }}",
44-
"pr_number":"${{ github.event.pull_request.number }}"
45-
}
46-
}'
33+
"param1":"value1",
34+
"param2":"value2"
35+
}
36+
}'

0 commit comments

Comments
 (0)