ClickHouse/.github/actions/debug/action.yml

35 lines
770 B
YAML
Raw Normal View History

2024-08-15 12:06:21 +00:00
name: DebugInfo
description: Prints workflow debug info
runs:
using: "composite"
steps:
- name: Envs, event.json and contexts
2024-08-15 12:06:21 +00:00
shell: bash
run: |
echo '::group::Environment variables'
2024-09-13 15:17:10 +00:00
env | sort
echo '::endgroup::'
echo '::group::event.json'
2024-08-15 12:06:21 +00:00
python3 -m json.tool "$GITHUB_EVENT_PATH"
echo '::endgroup::'
2024-09-13 15:17:10 +00:00
cat << 'EOF'
::group::github context
2024-09-13 15:17:10 +00:00
${{ toJSON(github) }}
::endgroup::
::group::env context
${{ toJSON(env) }}
2024-09-13 15:17:10 +00:00
::endgroup::
::group::runner context
${{ toJSON(runner) }}
2024-09-13 15:17:10 +00:00
::endgroup::
::group::job context
2024-09-13 15:17:10 +00:00
${{ toJSON(job) }}
::endgroup::
EOF