Skip to content

Commit 2621694

Browse files
committed
RED-159320 Run report only if not skipped
1 parent 3d59b12 commit 2621694

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

.github/actions/build-and-tag-locally/action.yml

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -205,6 +205,7 @@ runs:
205205
fi
206206
207207
- name: Test the entrypoint
208+
id: test_entrypoint
208209
if: ${{ contains(fromJSON('["amd64", "i386"]'), steps.platform.outputs.display_name) }}
209210
shell: bash
210211
run: >
@@ -216,16 +217,13 @@ runs:
216217
217218
- name: Test Report
218219
uses: dorny/test-reporter@v2
219-
# conditions should be the same as in Test the entrypoint
220-
if: ${{ contains(fromJSON('["amd64", "i386"]'), steps.platform.outputs.display_name) }}
221-
# run this step even if previous step failed
222-
if: ${{ !cancelled() }}
220+
# run this step even if previous step failed, but not if it was skipped
221+
if: ${{ !cancelled() && steps.test_entrypoint.conclusion != 'skipped' }}
223222
with:
224223
name: Entrypoint Tests
225224
path: test/report.xml
226225
reporter: java-junit
227226

228-
229227
- name: Push image
230228
uses: docker/build-push-action@v6
231229
if: ${{ inputs.publish_image == 'true' && contains(fromJSON('["amd64"]'), steps.platform.outputs.display_name) }}

0 commit comments

Comments
 (0)