-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add github action for triggering tests automatically on Teamcity when…
… the PR is approved on Plugins
- Loading branch information
Showing
2 changed files
with
19 additions
and
18 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
name: Trigger PR tests (Plugins) | ||
|
||
on: | ||
pull_request: | ||
types: [auto_merge_enabled] | ||
|
||
jobs: | ||
trigger-pr-tests-plugins: | ||
name: Trigger PR tests (Plugins) | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Call TeamCity API endpoint | ||
run: | | ||
curl \ | ||
-X POST \ | ||
-H 'Authorization: Bearer ${{ secrets.TEAMCITY_TRIGGER_TESTS_TOKEN }}' \ | ||
-H 'Content-Type: application/json' \ | ||
-d '{"branchName": "pull/${{ github.event.number }}", "buildType": {"id": "${{ vars.TEAMCITY_BUILD_ID_FOR_TESTING_PLUGIN_PR }}"}}' \ | ||
${{ vars.TEAMCITY_API_URL }}/buildQueue |