[Autofocus Query Samples, Sessions and Tags Test Playbook] Adding timeout #26819
Workflow file for this run
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 Contribution Build | |
on: | |
pull_request_target: | |
types: [labeled] | |
jobs: | |
trigget_contrib_build: | |
runs-on: ubuntu-latest | |
if: github.event.action == 'labeled' && contains(github.event.pull_request.labels.*.name, 'ready-for-instance-test') == true && github.event.pull_request.head.repo.fork == true | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Setup Python | |
uses: actions/setup-python@v3 | |
with: | |
python-version: '3.9' | |
- name: Setup Poetry | |
uses: Gr1N/setup-poetry@v8 | |
- name: Install Python Dependencies | |
run: | | |
poetry install --with ci | |
- name: Trigger Contribution Build | |
env: | |
PR_NUMBER: ${{ github.event.pull_request.number }} | |
BASE_BRANCH: ${{ github.event.pull_request.base.ref }} | |
CONTRIB_BRANCH: ${{ github.event.pull_request.head.label }} | |
USERNAME: ${{ secrets.SECRET_CHECK_USER_NG }} | |
PASSWORD: ${{ secrets.SECRET_CHECK_PASS_NG }} | |
GOLD_SERVER_URL: ${{ secrets.GOLD_SERVER_URL_NG }} | |
run: | | |
echo "Trigger contribution build for PR: $PR_NUMBER with base branch: $BASE_BRANCH contrib branch: $CONTRIB_BRANCH" | |
poetry run python ./Utils/github_workflow_scripts/trigger_contribution_build.py --pr_number $PR_NUMBER --base_branch $BASE_BRANCH --contrib_branch $CONTRIB_BRANCH --username $USERNAME --password $PASSWORD --gold_server_url $GOLD_SERVER_URL |