From db402caa47a5c811cbf5fab1d5be16a5572f49ea Mon Sep 17 00:00:00 2001 From: "Benjamin M. Hughes" Date: Wed, 16 Jun 2021 09:26:56 +0100 Subject: [PATCH] Add debug step to action --- .github/workflows/ci.yml | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 2cb33ee..3d64769 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -14,7 +14,7 @@ jobs: - name: Check out code uses: actions/checkout@master - name: Run Chef Delivery - uses: actionshub/chef-delivery@main + uses: actionshub/chef-delivery@master env: CHEF_LICENSE: accept-no-persist @@ -57,3 +57,11 @@ jobs: with: suite: ${{ matrix.suite }} os: ${{ matrix.os }} + - name: Print debug output on failure + if: failure() + run: | + set -x + sudo journalctl -l --since today + sudo docker version + sudo docker info + KITCHEN_LOCAL_YAML=kitchen.dokken.yml /usr/bin/kitchen exec ${{ matrix.suite }}-${{ matrix.os }} -c "journalctl -l"