4848
4949 - name : Check for changed files
5050 id : check
51- uses : stackabletech/actions/detect-changes@babe44d7b1db87f8e7731c011151d22a8a374191 # v0.12.0
51+ uses : stackabletech/actions/detect-changes@9848c5593dff4793aacba240116a648c02f20fa4 # v0.13.1
5252 with :
5353 patterns : |
5454 - '.github/workflows/build.yaml'
@@ -166,15 +166,16 @@ jobs:
166166
167167 - name : Build Container Image
168168 id : build
169- uses : stackabletech/actions/build-container-image@babe44d7b1db87f8e7731c011151d22a8a374191 # v0.12.0
169+ uses : stackabletech/actions/build-container-image@9848c5593dff4793aacba240116a648c02f20fa4 # v0.13.1
170170 with :
171171 image-name : ${{ env.OPERATOR_NAME }}
172172 image-index-manifest-tag : ${{ steps.version.outputs.OPERATOR_VERSION }}
173173 build-arguments : VERSION=${{ steps.version.outputs.OPERATOR_VERSION }}
174174 container-file : docker/Dockerfile
175175
176176 - name : Publish Container Image
177- uses : stackabletech/actions/publish-image@babe44d7b1db87f8e7731c011151d22a8a374191 # v0.12.0
177+ if : ${{ !github.event.pull_request.head.repo.fork }}
178+ uses : stackabletech/actions/publish-image@9848c5593dff4793aacba240116a648c02f20fa4 # v0.13.1
178179 with :
179180 image-registry-uri : oci.stackable.tech
180181 image-registry-username : robot$sdp+github-action-build
@@ -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
@@ -199,7 +203,7 @@ jobs:
199203 persist-credentials : false
200204
201205 - name : Publish and Sign Image Index
202- uses : stackabletech/actions/publish-image-index-manifest@babe44d7b1db87f8e7731c011151d22a8a374191 # v0.12.0
206+ uses : stackabletech/actions/publish-image-index-manifest@9848c5593dff4793aacba240116a648c02f20fa4 # v0.13.1
203207 with :
204208 image-registry-uri : oci.stackable.tech
205209 image-registry-username : robot$sdp+github-action-build
@@ -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
@@ -224,7 +230,7 @@ jobs:
224230 submodules : recursive
225231
226232 - name : Package, Publish, and Sign Helm Chart
227- uses : stackabletech/actions/publish-helm-chart@babe44d7b1db87f8e7731c011151d22a8a374191 # v0.12.0
233+ uses : stackabletech/actions/publish-helm-chart@9848c5593dff4793aacba240116a648c02f20fa4 # v0.13.1
228234 with :
229235 chart-registry-uri : oci.stackable.tech
230236 chart-registry-username : robot$sdp-charts+github-action-build
@@ -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
@@ -250,7 +260,7 @@ jobs:
250260 runs-on : ubuntu-latest
251261 steps :
252262 - name : Run OpenShift Preflight Check
253- uses : stackabletech/actions/run-openshift-preflight@babe44d7b1db87f8e7731c011151d22a8a374191 # v0.12.0
263+ uses : stackabletech/actions/run-openshift-preflight@9848c5593dff4793aacba240116a648c02f20fa4 # v0.13.1
254264 with :
255265 image-index-uri : oci.stackable.tech/sdp/${{ env.OPERATOR_NAME }}:${{ needs.build-container-image.outputs.operator-version }}
256266 image-architecture : ${{ matrix.arch }}
@@ -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
@@ -286,7 +300,7 @@ jobs:
286300 persist-credentials : false
287301
288302 - name : Send Notification
289- uses : stackabletech/actions/send-slack-notification@babe44d7b1db87f8e7731c011151d22a8a374191 # v0.12.0
303+ uses : stackabletech/actions/send-slack-notification@9848c5593dff4793aacba240116a648c02f20fa4 # v0.13.1
290304 with :
291305 publish-helm-chart-result : ${{ needs.publish-helm-chart.result }}
292306 publish-manifests-result : ${{ needs.publish-index-manifest.result }}
0 commit comments