Skip to content

Commit

Permalink
[SERV-1012] Add error logging
Browse files Browse the repository at this point in the history
  • Loading branch information
angelahuqing committed Feb 6, 2024
1 parent 6a8a2e6 commit 28e05e2
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,13 +42,14 @@ jobs:
id: maybe_fails
run: |
colima start --arch aarch64 2> errors.txt || true
echo ::set-output name=errors::`cat errors.txt`
# colima start --arch aarch64
echo ::set-output name=errors::$(cat errors.txt)
colima start --arch aarch64
# sudo ln -sf $HOME/.colima/default/docker.sock /var/run/docker.sock
- name: use error detail on failure
- name: Display errors on failure
if: ${{ failure() }}
run: |
echo ${{ steps.maybe_fails.outputs.errors }}
echo "Error details:"
cat errors.txt
- name: Check that Docker functions
run: docker ps
- name: Build with Maven
Expand Down

0 comments on commit 28e05e2

Please sign in to comment.