Skip to content

Commit

Permalink
Fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
embhorn committed Nov 28, 2023
1 parent 6f99095 commit 9d2db37
Showing 1 changed file with 16 additions and 4 deletions.
20 changes: 16 additions & 4 deletions .github/workflows/mqtt-sn-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -85,13 +85,25 @@ jobs:
[ $RESULT -ne 0 ] && echo -e "\n\nMQTT-SN Client failed!" && exit 1

# Cleanup
# - name: Stop gateway
# run: |
# sudo kill -2 $(pgrep -f "MQTT-SNGateway")
- name: Stop gateway
run: |
sudo kill -2 $(pgrep -f "MQTT-SNGateway")
# capture logs on failure
- name: Show logs on failure
if: failure() || cancelled()
run: |
sudo kill -2 $(pgrep -f "MQTT-SNGateway")
sudo cat ~/gateway.log
- name: Zip failure logs
if: failure()
run: |
zip -9 -r logs.zip ~/gateway.log
- name: Upload failure logs
if: failure()
uses: actions/upload-artifact@v3
with:
name: mqtt-sn-check-test-logs
path: logs.zip
retention-days: 5

0 comments on commit 9d2db37

Please sign in to comment.