Skip to content

Commit

Permalink
[Nemo CICD] Try trigger cicd run on comment (NVIDIA#9111)
Browse files Browse the repository at this point in the history
* try trigger cicd run on comment

* try trigger cicd run on comment
  • Loading branch information
pablo-garay authored May 4, 2024
1 parent be606a0 commit b198a11
Showing 1 changed file with 29 additions and 3 deletions.
32 changes: 29 additions & 3 deletions .github/workflows/cicd-main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ on:
pull_request:
branches: [ "main" ]
types: [ labeled ]
issue_comment:
types: [ created ]

concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
Expand All @@ -25,7 +27,15 @@ concurrency:
jobs:
gpu-test:
runs-on: self-hosted-azure
if: ${{ github.event.label.name == 'Run CICD' }}
if: >
(
github.event.label.name == 'Run CICD'
) || (
github.event_name == 'issue_comment' &&
github.event.issue.pull_request &&
contains(fromJSON('["MEMBER", "COLLABORATOR", "OWNER"]'), github.event.comment.author_association) &&
contains(github.event.comment.body, '/cicd')
)
steps:
- name: Run nvidia-smi test
run: |
Expand All @@ -34,7 +44,15 @@ jobs:
cicd-cluster-clean:
runs-on: self-hosted-azure-builder
if: ${{ github.event.label.name == 'Run CICD' }}
if: >
(
github.event.label.name == 'Run CICD'
) || (
github.event_name == 'issue_comment' &&
github.event.issue.pull_request &&
contains(fromJSON('["MEMBER", "COLLABORATOR", "OWNER"]'), github.event.comment.author_association) &&
contains(github.event.comment.body, '/cicd')
)
steps:
- name: Clean server from old files
run: |
Expand All @@ -57,7 +75,15 @@ jobs:
cicd-test-container-setup:
needs: [cicd-cluster-clean]
runs-on: self-hosted-azure-builder
if: ${{ github.event.label.name == 'Run CICD' }}
if: >
(
github.event.label.name == 'Run CICD'
) || (
github.event_name == 'issue_comment' &&
github.event.issue.pull_request &&
contains(fromJSON('["MEMBER", "COLLABORATOR", "OWNER"]'), github.event.comment.author_association) &&
contains(github.event.comment.body, '/cicd')
)
# uses: actions/cache@v2
#container:
# image: nvcr.io/nvidia/pytorch:24.02-py3
Expand Down

0 comments on commit b198a11

Please sign in to comment.