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: runs:
using: "composite" using: "composite"
steps: steps:
- name: Print envs - name: Envs, event.json and contexts
shell: bash shell: bash
run: | run: |
echo "::group::Envs" echo '::group::Environment variables'
env | sort env | sort
echo "::endgroup::" echo '::endgroup::'
- name: Print Event.json
shell: bash echo '::group::event.json'
run: |
echo "::group::Event.json"
python3 -m json.tool "$GITHUB_EVENT_PATH" python3 -m json.tool "$GITHUB_EVENT_PATH"
echo "::endgroup::" echo '::endgroup::'
- name: Pring contexts
shell: bash
run: |
cat << 'EOF' cat << 'EOF'
::group::github ::group::github context
${{ toJSON(github) }} ${{ toJSON(github) }}
::endgroup:: ::endgroup::
::group::runner ::group::env context
${{ toJSON(runner) }}
::endgroup::
::group::env
${{ toJSON(env) }} ${{ toJSON(env) }}
::endgroup:: ::endgroup::
::group::job ::group::runner context
${{ toJSON(runner) }}
::endgroup::
::group::job context
${{ toJSON(job) }} ${{ toJSON(job) }}
::endgroup:: ::endgroup::
EOF EOF