From 18c6ab65291346c146cf9e7bc3a81c5c361d6c34 Mon Sep 17 00:00:00 2001 From: Meenakshi Sharma <163925564+nvda-mesharma@users.noreply.github.com> Date: Sat, 27 Jul 2024 00:46:37 -0700 Subject: [PATCH] Update trigger_ci.yml --- .github/workflows/trigger_ci.yml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/.github/workflows/trigger_ci.yml b/.github/workflows/trigger_ci.yml index 07deb27b..2d850bfd 100644 --- a/.github/workflows/trigger_ci.yml +++ b/.github/workflows/trigger_ci.yml @@ -18,3 +18,21 @@ jobs: run: | #!/bin/bash curl --fail --request POST --form token=${{ secrets.PIPELINE_TOKEN }} -F ref=${GITHUB_HEAD_REF} -F variables[BUILD_OPTION]="BUILD-SOURCE" "${{ secrets.PIPELINE_URL }}" + add-ready-label: + environment: GITLAB + needs: trigger-ci + runs-on: self-hosted + if: ${{ github.event.workflow_run.conclusion == 'success' }} + steps: + - name: Add labels + uses: actions/github-script@v5 + with: + script: | + github.rest.issues.addLabels({ + owner: context.repo.owner, + repo: context.repo.repo, + issue_number: context.issue.number, + labels: ['ready', 'verified_on_V100', 'verified_on_A100', 'verified_on_H100'] + }) + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}