Skip to content

Commit

Permalink
add github action for triggering tests automatically on Teamcity when…
Browse files Browse the repository at this point in the history
… the PR is approved on Plugins
  • Loading branch information
bigorn0 committed Sep 5, 2024
1 parent 30a89ae commit 2d60b9b
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 18 deletions.
18 changes: 0 additions & 18 deletions .github/workflows/fake-pr-tests.yml

This file was deleted.

19 changes: 19 additions & 0 deletions .github/workflows/trigger-pr-tests-plugins.yml
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

0 comments on commit 2d60b9b

Please sign in to comment.