Skip to content

Commit 10d9612

Browse files
committed
add github action for triggering tests automatically on Teamcity when the PR is approved on Plugins
1 parent d31b1c5 commit 10d9612

File tree

2 files changed

+19
-18
lines changed

2 files changed

+19
-18
lines changed

.github/workflows/fake-pr-tests.yml

-18
This file was deleted.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
name: Trigger PR tests (Plugins)
2+
3+
on:
4+
pull_request:
5+
types: [auto_merge_enabled]
6+
7+
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

0 commit comments

Comments
 (0)