From b420bbf855f9126db774035b1672565484d947a2 Mon Sep 17 00:00:00 2001 From: "Mikhail f. Shiryaev" Date: Fri, 13 Sep 2024 17:17:10 +0200 Subject: [PATCH] Improve debug action --- .github/actions/debug/action.yml | 22 +++++++++++++++++++++- 1 file changed, 21 insertions(+), 1 deletion(-) diff --git a/.github/actions/debug/action.yml b/.github/actions/debug/action.yml index e1fe3f28024..d116c422e03 100644 --- a/.github/actions/debug/action.yml +++ b/.github/actions/debug/action.yml @@ -8,7 +8,7 @@ runs: shell: bash run: | echo "::group::Envs" - env + env | sort echo "::endgroup::" - name: Print Event.json shell: bash @@ -16,3 +16,23 @@ runs: echo "::group::Event.json" python3 -m json.tool "$GITHUB_EVENT_PATH" echo "::endgroup::" + - name: Pring contexts + shell: bash + run: | + cat << 'EOF' + ::group::github + ${{ toJSON(github) }} + ::endgroup:: + + ::group::runner + ${{ toJSON(runner) }} + ::endgroup:: + + ::group::env + ${{ toJSON(env) }} + ::endgroup:: + + ::group::job + ${{ toJSON(job) }} + ::endgroup:: + EOF