@@ -174,6 +174,7 @@ jobs:
174174 container-file: docker/Dockerfile
175175
176176 - name: Publish Container Image
177+ if: ${{ !github.event.pull_request.head.repo.fork }}
177178 uses: stackabletech/actions/publish-image@babe44d7b1db87f8e7731c011151d22a8a374191 # v0.12.0
178179 with:
179180 image-registry-uri: oci.stackable.tech
@@ -185,7 +186,10 @@ jobs:
185186
186187 publish-index-manifest:
187188 name: Publish/Sign ${{ needs.build-container-image.outputs.operator-version }} Index
188- if: (github.event_name != 'merge_group') && needs.detect-changes.outputs.detected == 'true'
189+ if: |
190+ (github.event_name != 'merge_group')
191+ && needs.detect-changes.outputs.detected == 'true'
192+ && !github.event.pull_request.head.repo.fork
189193 needs:
190194 - detect-changes
191195 - build-container-image
@@ -209,7 +213,9 @@ jobs:
209213
210214 publish-helm-chart:
211215 name: Package/Publish ${{ needs.build-container-image.outputs.operator-version }} Helm Chart
212- if: (github.event_name != 'merge_group') && needs.detect-changes.outputs.detected == 'true'
216+ if: |
217+ (github.event_name != 'merge_group')
218+ && needs.detect-changes.outputs.detected == 'true'
213219 needs:
214220 - detect-changes
215221 - build-container-image
@@ -233,10 +239,14 @@ jobs:
233239 chart-directory: deploy/helm/${{ env.OPERATOR_NAME }}
234240 chart-version: ${{ needs.build-container-image.outputs.operator-version }}
235241 app-version: ${{ needs.build-container-image.outputs.operator-version }}
242+ publish-and-sign: ${{ !github.event.pull_request.head.repo.fork }}
236243
237244 openshift-preflight-check:
238245 name: Run OpenShift Preflight Check for ${{ needs.build-container-image.outputs.operator-version }}-${{ matrix.arch }}
239- if: (github.event_name != 'merge_group') && needs.detect-changes.outputs.detected == 'true'
246+ if: |
247+ (github.event_name != 'merge_group')
248+ && needs.detect-changes.outputs.detected == 'true'
249+ && !github.event.pull_request.head.repo.fork
240250 needs:
241251 - detect-changes
242252 - build-container-image
@@ -272,7 +282,11 @@ jobs:
272282
273283 notify:
274284 name: Failure Notification
275- if: (failure() || github.run_attempt > 1) && github.event_name != 'merge_group' && needs.detect-changes.outputs.detected == 'true'
285+ if: |
286+ (failure() || github.run_attempt > 1)
287+ && github.event_name != 'merge_group'
288+ && needs.detect-changes.outputs.detected == 'true'
289+ && !github.event.pull_request.head.repo.fork
276290 needs:
277291 - detect-changes
278292 - build-container-image
0 commit comments