Skip to content

Commit

Permalink
GitHub Actions: Simplify execution of cat when previous command fails
Browse files Browse the repository at this point in the history
Signed-off-by: Sebastian Veit <[email protected]>
  • Loading branch information
sebveit committed Nov 11, 2024
1 parent 7650c12 commit 4aba758
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/bitbake-main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ jobs:
cd oe-core
source oe-init-build-env build
bitbake-layers add-layer ../meta-openjdk-temurin \
if [ $? -ne 0 ]; then cat bitbake-cookerdaemon.log; fi
|| cat bitbake-cookerdaemon.log
- name: Restore cached sstate of Bitbake
id: cache-bitbake-sstate-restore
uses: actions/cache/restore@v3
Expand All @@ -71,7 +71,7 @@ jobs:
cd oe-core
source oe-init-build-env build
MACHINE=${{ matrix.machine }} bitbake ${{ matrix.recipe }} \
if [ $? -ne 0 ]; then cat bitbake-cookerdaemon.log; fi
|| cat bitbake-cookerdaemon.log
- name: Save sstate of Bitbake
id: cache-bitbake-sstate-save
if: steps.cache-bitbake-sstate-restore.outputs.cache-hit != 'true'
Expand Down

0 comments on commit 4aba758

Please sign in to comment.