Skip to content

Commit afce851

Browse files
committed
add pull request source branch to TC trigger call
1 parent 2a22ae8 commit afce851

File tree

1 file changed

+14
-14
lines changed

1 file changed

+14
-14
lines changed
Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,19 @@
11
name: Trigger PR tests (Plugins)
22

33
on:
4-
pull_request:
5-
types: [auto_merge_enabled]
4+
pull_request:
5+
types: [auto_merge_enabled]
66

77
jobs:
8-
trigger-pr-tests-plugins:
9-
name: Trigger PR tests (Plugins)
10-
runs-on: ubuntu-latest
11-
steps:
12-
- name: Call TeamCity API endpoint
13-
run: |
14-
curl \
15-
-X POST \
16-
-H 'Authorization: Bearer ${{ secrets.TEAMCITY_TRIGGER_TESTS_TOKEN }}' \
17-
-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
8+
trigger-pr-tests-plugins:
9+
name: Trigger PR tests (Plugins)
10+
runs-on: ubuntu-latest
11+
steps:
12+
- name: Call TeamCity API endpoint
13+
run: |
14+
curl \
15+
-X POST \
16+
-H 'Authorization: Bearer ${{ secrets.TEAMCITY_TRIGGER_TESTS_TOKEN }}' \
17+
-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 }}"}}' \
19+
${{ vars.TEAMCITY_API_URL }}/buildQueue

0 commit comments

Comments
 (0)