Skip to content

Commit

Permalink
Fix failure detection (#167)
Browse files Browse the repository at this point in the history
Signed-off-by: Nicolas Rol <[email protected]>
  • Loading branch information
rolnico authored Jan 13, 2025
1 parent b32ae5a commit bd238b3
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions .github/workflows/snapshot-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -109,17 +109,6 @@ jobs:
runs-on: ubuntu-latest
if: always()
steps:
- name: Determine workflow status
id: workflow_status
run: |
if [ "${{ job.status }}" == "success" ]; then
echo "icon=✅" >> $GITHUB_OUTPUT
echo "status=Successful" >> $GITHUB_OUTPUT
else
echo "icon=❌" >> $GITHUB_OUTPUT
echo "status=Failed" >> $GITHUB_OUTPUT
fi
- name: Download job results
uses: actions/download-artifact@fa0a91b85d4f404e444e00e005971372dc801d16 # v4.1.8

Expand All @@ -129,6 +118,17 @@ jobs:
cat "$dir"/* >> combined_job_results.txt
done
- name: Determine workflow status
id: workflow_status
run: |
if grep -q "failure" combined_job_results.txt; then
echo "icon=❌" >> $GITHUB_OUTPUT
echo "status=Failed" >> $GITHUB_OUTPUT
else
echo "icon=✅" >> $GITHUB_OUTPUT
echo "status=Successful" >> $GITHUB_OUTPUT
fi
- name: Format job results
id: format_results
run: |
Expand Down

0 comments on commit bd238b3

Please sign in to comment.