Skip to content

Commit f155a2d

Browse files
Automatically expand summary step in failed jobs
When opening the page to a failed job, GHA will automatically expand the last failing step. We can exploit this to automatically expand the summary step, which is the preferred starting point for figuring out what failed.
1 parent 1be374e commit f155a2d

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

.github/workflows/cpp-packaging.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -691,6 +691,8 @@ jobs:
691691
run: |
692692
python scripts/gha/test_lab.py --android_model ${{ env.android_device }} --android_api ${{ env.android_api }} --ios_model ${{ env.ios_device }} --ios_version ${{ env.ios_version }} --testapp_dir testapps --code_platform cpp --key_file scripts/gha-encrypted/gcs_key_file.json
693693
- name: Summarize build and test results
694-
if: ${{ !cancelled() }}
694+
if: failure()
695695
shell: bash
696-
run: cat testapps/summary.log
696+
run: |
697+
cat testapps/summary.log
698+
exit 1

.github/workflows/integration_tests.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -160,6 +160,8 @@ jobs:
160160
run: |
161161
python scripts/gha/test_lab.py --android_model ${{ github.event.inputs.android_device }} --android_api ${{ github.event.inputs.android_api }} --ios_model ${{ github.event.inputs.ios_device }} --ios_version ${{ github.event.inputs.ios_version }} --testapp_dir testapps --code_platform cpp --key_file scripts/gha-encrypted/gcs_key_file.json
162162
- name: Summarize build and test results
163-
if: ${{ !cancelled() }}
163+
if: failure()
164164
shell: bash
165-
run: cat testapps/summary.log
165+
run: |
166+
cat testapps/summary.log
167+
exit 1

0 commit comments

Comments
 (0)