Skip to content

Commit e2e2b9d

Browse files
committed
add pull request source branch to TC trigger call
1 parent 5058187 commit e2e2b9d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/trigger-pr-tests-plugins.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,5 +15,5 @@ jobs:
1515
-X POST \
1616
-H 'Authorization: Bearer ${{ secrets.TEAMCITY_TRIGGER_TESTS_TOKEN }}' \
1717
-H 'Content-Type: application/json' \
18-
-d '{"branchName": "pull/${{ github.event.number }}", "buildType": {"id": "${{ vars.TEAMCITY_BUILD_ID_FOR_TESTING_PLUGIN_PR }}"}}' \
19-
${{ vars.TEAMCITY_API_URL }}/buildQueue
18+
-d '{"branchName": "pull/${{ github.event.number }}", "sourceBranch": "${{ github.event.pull_request.head.ref }}", "buildType": {"id": "${{ vars.TEAMCITY_BUILD_ID_FOR_TESTING_PLUGIN_PR }}"}}' \
19+
${{ vars.TEAMCITY_API_URL }}/buildQueue

0 commit comments

Comments
 (0)