From 98f4a3fcd25137354cf335c212f7ef1cf9f3aaac Mon Sep 17 00:00:00 2001 From: Meenakshi Sharma <163925564+nvda-mesharma@users.noreply.github.com> Date: Tue, 30 Jul 2024 13:16:02 -0700 Subject: [PATCH] Create verified.yml --- .github/workflows/verified.yml | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 .github/workflows/verified.yml diff --git a/.github/workflows/verified.yml b/.github/workflows/verified.yml new file mode 100644 index 00000000..1c2c005d --- /dev/null +++ b/.github/workflows/verified.yml @@ -0,0 +1,23 @@ +on: + issue_comment: + types: [created] +jobs: + run-test: + runs-on: ubuntu-latest + if: github.event.issue.pull_request && contains(github.event.comment.body, '/ready')add-verified-labels: + environment: GITLAB + runs-on: self-hosted + if: ${{ always() && !cancelled() && needs.*.result == '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 }}