Skip to content

Commit

Permalink
chore(print contexts action): use heredoc instead of echo in print co…
Browse files Browse the repository at this point in the history
…ntexts actioni (#1649)
  • Loading branch information
goastler authored Jan 29, 2025
1 parent 9a7d7c9 commit 008c08c
Showing 1 changed file with 54 additions and 23 deletions.
77 changes: 54 additions & 23 deletions .github/actions/print_contexts/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,26 +24,57 @@ runs:
- name: Print contexts
shell: bash
run: |
echo "******************************"
echo "github:" "${{ toJson(github) }}"
echo "******************************"
echo "env:" "${{ toJson(env) }}"
echo "******************************"
echo "vars:" "${{ inputs.VARS_CONTEXT }}"
echo "******************************"
echo "job:" "${{ toJson(job) }}"
echo "******************************"
echo "runner:" "${{ toJson(runner) }}"
echo "******************************"
echo "secrets:" "${{ inputs.SECRETS_CONTEXT }}"
echo "******************************"
echo "strategy:" "${{ toJson(strategy) }}"
echo "******************************"
echo "matrix:" "${{ toJson(matrix)}}"
echo "******************************"
echo "needs:" "${{ inputs.NEEDS_CONTEXT }}"
echo "******************************"
echo "inputs:" "${{ inputs.INPUTS_CONTEXT }}"
echo "******************************"
echo "steps:" "${{ inputs.STEPS_CONTEXT }}"
echo "******************************"
echo "**** github ****"
cat <<'EOF'
${{ toJson(github) }}
EOF
echo "**** env ****"
cat <<'EOF'
${{ toJson(env) }}
EOF
echo "**** vars ****"
cat <<'EOF'
${{ inputs.VARS_CONTEXT }}
EOF
echo "**** job ****"
cat <<'EOF'
${{ toJson(job) }}
EOF
echo "**** runner ****"
cat <<'EOF'
${{ toJson(runner) }}
EOF
echo "**** secrets ****"
cat <<'EOF'
${{ inputs.SECRETS_CONTEXT }}
EOF
echo "**** strategy ****"
cat <<'EOF'
${{ toJson(strategy) }}
EOF
echo "**** matrix ****"
cat <<'EOF'
${{ toJson(matrix)}}
EOF
echo "**** needs ****"
cat <<'EOF'
${{ inputs.NEEDS_CONTEXT }}
EOF
echo "**** inputs ****"
cat <<'EOF'
${{ inputs.INPUTS_CONTEXT }}
EOF
echo "**** steps ****"
cat <<'EOF'
${{ inputs.STEPS_CONTEXT }}
EOF

0 comments on commit 008c08c

Please sign in to comment.