Skip to content

Commit 7fb9246

Browse files
authored
Fix failure detection in snapshot CI (#197)
* fix failure detection in snapshot ci Signed-off-by: Nicolas Rol <[email protected]> * delete test on PR Signed-off-by: Nicolas Rol <[email protected]> --------- Signed-off-by: Nicolas Rol <[email protected]>
1 parent 892ea3d commit 7fb9246

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

Diff for: .github/workflows/snapshot-ci.yml

+11-11
Original file line numberDiff line numberDiff line change
@@ -172,17 +172,6 @@ jobs:
172172
runs-on: ubuntu-latest
173173
if: always()
174174
steps:
175-
- name: Determine workflow status
176-
id: workflow_status
177-
run: |
178-
if [ "${{ job.status }}" == "success" ]; then
179-
echo "icon=✅" >> $GITHUB_OUTPUT
180-
echo "status=Successful" >> $GITHUB_OUTPUT
181-
else
182-
echo "icon=❌" >> $GITHUB_OUTPUT
183-
echo "status=Failed" >> $GITHUB_OUTPUT
184-
fi
185-
186175
- name: Download job results
187176
uses: actions/download-artifact@fa0a91b85d4f404e444e00e005971372dc801d16 # v4.1.8
188177

@@ -192,6 +181,17 @@ jobs:
192181
cat "$dir"/* >> combined_job_results.txt
193182
done
194183
184+
- name: Determine workflow status
185+
id: workflow_status
186+
run: |
187+
if grep -q "failure" combined_job_results.txt; then
188+
echo "icon=❌" >> $GITHUB_OUTPUT
189+
echo "status=Failed" >> $GITHUB_OUTPUT
190+
else
191+
echo "icon=✅" >> $GITHUB_OUTPUT
192+
echo "status=Successful" >> $GITHUB_OUTPUT
193+
fi
194+
195195
- name: Format job results
196196
id: format_results
197197
run: |

0 commit comments

Comments
 (0)