Skip to content

Commit

Permalink
GH actions failure log
Browse files Browse the repository at this point in the history
  • Loading branch information
danthe1st committed Mar 9, 2024
1 parent 859a99a commit e6d8885
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/scripts/verifyExecutable.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ set -e
./target/https-intercept > intercept.log 2>&1 &
interceptPID="$!"

sleep 3
sleep 4
curl_result="$(curl --connect-to example.com:1337:127.0.0.1 https://example.com:1337 --cacert root.pem -i)"

kill "$interceptPID"
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,13 @@ jobs:
- name: Build image
run: mvn -Pnative package
- name: verify executable
id: verify
run: |
./certs.sh
./.github/scripts/verifyExecutable.sh
- name: check log if error
if: ${{ failure() && steps.verify.conclusion == 'failure' }}
run: cat intercept.log
- uses: actions/upload-artifact@v4
with:
path: target/https-intercept
Expand Down

0 comments on commit e6d8885

Please sign in to comment.