Skip to content

Commit 654c88e

Browse files
ko3n1gclaude
andcommitted
ci(release): add pre-flight gate to skip on deploy-release/* + docs-only
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com> Signed-off-by: oliver könig <okoenig@nvidia.com>
1 parent 0af788a commit 654c88e

1 file changed

Lines changed: 21 additions & 3 deletions

File tree

.github/workflows/release.yml

Lines changed: 21 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -70,8 +70,20 @@ concurrency:
7070
cancel-in-progress: ${{ github.event_name == 'push' }}
7171

7272
jobs:
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

0 commit comments

Comments
 (0)