From b55d0b54ea2810355723fb2edb0705fc07f4c320 Mon Sep 17 00:00:00 2001 From: "Mikhail f. Shiryaev" Date: Fri, 13 Sep 2024 17:27:31 +0200 Subject: [PATCH] Merge steps together to minimize grouping --- .github/actions/debug/action.yml | 32 ++++++++++++++------------------ 1 file changed, 14 insertions(+), 18 deletions(-) diff --git a/.github/actions/debug/action.yml b/.github/actions/debug/action.yml index d116c422e03..b45465809d2 100644 --- a/.github/actions/debug/action.yml +++ b/.github/actions/debug/action.yml @@ -4,35 +4,31 @@ description: Prints workflow debug info runs: using: "composite" steps: - - name: Print envs + - name: Envs, event.json and contexts shell: bash run: | - echo "::group::Envs" + echo '::group::Environment variables' env | sort - echo "::endgroup::" - - name: Print Event.json - shell: bash - run: | - echo "::group::Event.json" + echo '::endgroup::' + + echo '::group::event.json' python3 -m json.tool "$GITHUB_EVENT_PATH" - echo "::endgroup::" - - name: Pring contexts - shell: bash - run: | + echo '::endgroup::' + cat << 'EOF' - ::group::github + ::group::github context ${{ toJSON(github) }} ::endgroup:: - ::group::runner - ${{ toJSON(runner) }} - ::endgroup:: - - ::group::env + ::group::env context ${{ toJSON(env) }} ::endgroup:: - ::group::job + ::group::runner context + ${{ toJSON(runner) }} + ::endgroup:: + + ::group::job context ${{ toJSON(job) }} ::endgroup:: EOF