Skip to content

Commit e4cc779

Browse files
more logs
1 parent f91da95 commit e4cc779

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

danger/action.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ runs:
5454
run: |
5555
# Start a detached container with all necessary volumes and environment variables
5656
docker run -td --name danger \
57+
--entrypoint /bin/bash \
5758
--volume ${{ github.workspace }}:/github/workspace \
5859
--volume ${{ github.action_path }}:${{ github.action_path }} \
5960
--volume ${{ github.event_path }}:${{ github.event_path }} \
@@ -64,7 +65,10 @@ runs:
6465
-e DANGER_DISABLE_TRANSPILATION="true" \
6566
-e EXTRA_DANGERFILE_INPUT="${{ inputs.extra-dangerfile }}" \
6667
ghcr.io/danger/danger-js:${{ steps.config.outputs.version }} \
67-
/bin/bash
68+
-c "sleep infinity"
69+
70+
echo "Container started. Checking if it's running..."
71+
docker ps | grep danger || (echo "Container not running!" && exit 1)
6872
6973
- name: Setup additional packages
7074
if: ${{ inputs.extra-install-packages }}

0 commit comments

Comments
 (0)