Skip to content

Commit

Permalink
add post action to dump jimm's log (#1558)
Browse files Browse the repository at this point in the history
  • Loading branch information
SimoneDutto authored Feb 27, 2025
1 parent 2bdd39d commit e30d6ab
Showing 1 changed file with 7 additions and 8 deletions.
15 changes: 7 additions & 8 deletions .github/actions/test-server/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,10 @@ inputs:
description: Python version to install in the setup-python action.
default: "3.12"
required: false
dump-logs:
description: 'Dump JIMM container logs at the end of the action.'
required: false
default: "false"

outputs:
url:
Expand Down Expand Up @@ -143,12 +147,7 @@ runs:
shell: bash

- name: Dump JIMM container logs
if: always()
run: docker logs ${{ env.container_name }} > jimm_container_logs.txt
shell: bash

- name: Upload JIMM container logs
if: always()
uses: actions/upload-artifact@v4
if: failure() || inputs.dump-logs == 'true'
uses: gacts/run-and-post-run@v1
with:
path: jimm_container_logs.txt
post: docker logs ${{ env.container_name }}

0 comments on commit e30d6ab

Please sign in to comment.