Skip to content

Commit

Permalink
common: simplify failure handling in GHA
Browse files Browse the repository at this point in the history
Signed-off-by: Jan Michalski <[email protected]>
  • Loading branch information
janekmi committed Sep 30, 2024
1 parent 9eb6c47 commit fba5d73
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions .github/workflows/ubuntu.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,13 +47,8 @@ jobs:
id: build

- name: Archive logs
if: steps.build.outcome != 'success'
if: failure()
uses: actions/upload-artifact@50769540e7f4bd5e21e526ee35c689e35e0d6874 # v4.4.0
with:
name: logs-${{ matrix.TEST_BUILD }}
path: ${{env.HOST_WORKDIR}}/src/test/**/*.log

- name: Exit code
run: |
[ "${{steps.build.outcome}}" != "success" ] && exit 1
exit 0

0 comments on commit fba5d73

Please sign in to comment.