Merge steps together to minimize grouping

This commit is contained in:
Mikhail f. Shiryaev 2024-09-13 17:27:31 +02:00
parent 418ef3f8bc
commit b55d0b54ea
No known key found for this signature in database
GPG Key ID: 4B02ED204C7D93F4

View File

@ -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