[CI] add contributor interaction automation #1
This file contains hidden or 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 Full Test Suite | |
| on: | |
| pull_request: | |
| types: [labeled] | |
| jobs: | |
| trigger-buildkite: | |
| if: >- | |
| github.repository == 'hao-ai-lab/FastVideo' | |
| && github.event.label.name == 'ready' | |
| runs-on: ubuntu-latest | |
| permissions: | |
| pull-requests: read | |
| steps: | |
| - name: Trigger Buildkite build with FULL_SUITE | |
| uses: buildkite/trigger-pipeline-action@v2.4.1 | |
| with: | |
| buildkite_api_access_token: ${{ secrets.BUILDKITE_API_TOKEN }} | |
| pipeline: "${{ vars.BUILDKITE_ORG_SLUG }}/${{ vars.BUILDKITE_PIPELINE_SLUG }}" | |
| branch: "${{ github.event.pull_request.head.ref }}" | |
| commit: "${{ github.event.pull_request.head.sha }}" | |
| message: "Full suite for PR #${{ github.event.pull_request.number }}" | |
| send_pull_request: "true" | |
| pull_request_base_branch: "${{ github.event.pull_request.base.ref }}" | |
| build_env_vars: '{"FULL_SUITE": "true"}' |