Skip to content

Commit 021c979

Browse files
committed
update pull request BUILD_BRANCH as property of the build to TC trigger call
1 parent e2e2b9d commit 021c979

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
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 }}", "sourceBranch": "${{ github.event.pull_request.head.ref }}", "buildType": {"id": "${{ vars.TEAMCITY_BUILD_ID_FOR_TESTING_PLUGIN_PR }}"}}' \
18+
-d '{"branchName": "pull/${{ github.event.number }}", "buildType": {"id": "${{ vars.TEAMCITY_BUILD_ID_FOR_TESTING_PLUGIN_PR }}"}, "properties": { "property": [ {"name": "BUILD_BRANCH", "value": "${{ github.event.pull_request.head.ref }}" }] }}' \
1919
${{ vars.TEAMCITY_API_URL }}/buildQueue

0 commit comments

Comments
 (0)