DO NOT MERGE - Test pipeline performance trigger workflow #19
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
name: Trigger Pipeline Performance Test | |
on: | |
pull_request: | |
types: [labeled] | |
jobs: | |
check-label: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check if 'performance' label was added | |
if: github.event.action == 'labeled' && contains(github.event.label.name, 'performance') | |
run: | | |
echo "performance label detected. Triggering performance test." | |
- name: Trigger performance test workflow in test project | |
if: github.event.action == 'labeled' && contains(github.event.label.name, 'performance') | |
run: | | |
curl -X POST \ | |
-H "Accept: application/vnd.github+json" \ | |
-H "Authorization: token ${{ secrets.GH_TAGGING_TOKEN }}" \ | |
https://api.github.com/repos/kedro-org/pipeline-performance-test/actions/workflows/performance-test.yml/dispatches \ | |
-d '{"ref":"main", "inputs": {"branch_name": "${{ github.event.pull_request.head.ref }}"}}' |