File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -70,8 +70,20 @@ concurrency:
7070 cancel-in-progress : ${{ github.event_name == 'push' }}
7171
7272jobs :
73+ pre-flight :
74+ if : github.event_name != 'workflow_dispatch'
75+ uses : NVIDIA-NeMo/FW-CI-templates/.github/workflows/_cicd_preflight.yml@v0.94.1
76+
7377 release :
74- if : ${{ !cancelled() }}
78+ needs : [pre-flight]
79+ if : |
80+ !cancelled()
81+ && (needs.pre-flight.result == 'success' || needs.pre-flight.result == 'skipped')
82+ && (
83+ github.event_name == 'workflow_dispatch'
84+ || !(needs.pre-flight.outputs.docs_only == 'true'
85+ || needs.pre-flight.outputs.is_deployment_workflow == 'true')
86+ )
7587 uses : NVIDIA-NeMo/FW-CI-templates/.github/workflows/_release_library.yml@f5224c1bd6206ba3b26dd7a91c970a3902711b8f
7688 with :
7789 release-ref : ${{ inputs.release-ref || github.sha }}
@@ -105,8 +117,14 @@ jobs:
105117 S3_BUCKET_NAME : ${{ secrets.S3_BUCKET_NAME }}
106118
107119 release-summary :
108- needs : [release]
109- if : always() && !cancelled()
120+ needs : [pre-flight, release]
121+ if : |
122+ (
123+ needs.pre-flight.outputs.docs_only == 'true'
124+ || needs.pre-flight.outputs.is_deployment_workflow == 'true'
125+ || always()
126+ )
127+ && !cancelled()
110128 runs-on : ubuntu-latest
111129 steps :
112130 - name : Result
You can’t perform that action at this time.
0 commit comments