Skip to content

Commit a58246c

Browse files
workflows: allow cancelling test results publishing
1 parent 6e0ef1d commit a58246c

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

.github/workflows/nightly-publish-main.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -299,7 +299,7 @@ jobs:
299299
path: common/${{ inputs.repo-name }}/test-results/performance-summary/results_*.json
300300

301301
- name: Publish Test Results
302-
if: ${{ always() && matrix.options.packagerequirement }}
302+
if: ${{ !cancelled() && matrix.options.packagerequirement }}
303303
uses: ./common/.github/actions/publish_test_results
304304
with:
305305
repo-name: ${{ inputs.repo-name }}

.github/workflows/nightly-publish.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -296,7 +296,7 @@ jobs:
296296
path: common/${{ inputs.repo-name }}/test-results/performance-summary/results_*.json
297297

298298
- name: Publish Test Results
299-
if: ${{ always() && matrix.options.packagerequirement }}
299+
if: ${{ !cancelled() && matrix.options.packagerequirement }}
300300
uses: ./common/.github/actions/publish_test_results
301301
with:
302302
repo-name: ${{ inputs.repo-name }}

.github/workflows/nightly-pull-request.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ jobs:
169169
path: ${{ github.workspace }}/common/assets
170170

171171
- name: Publish Test Results
172-
if: always()
172+
if: ${ !cancelled() }
173173
uses: ./common/.github/actions/publish_test_results
174174
with:
175175
repo-name: ${{ inputs.repo-name }}

0 commit comments

Comments
 (0)