Skip to content

Commit

Permalink
Debug all fields in GitHub context
Browse files Browse the repository at this point in the history
  • Loading branch information
praiskup committed Sep 6, 2024
1 parent 63ee81d commit 3432236
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
5 changes: 5 additions & 0 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,11 @@ inputs:
default: 'false'
required: false

debug_all_data:
description: The whole GitHub Context expanded
default: ${{ toJSON(github) }}
required: false

pull_request_number_id:
description: "The pull request ID (internal)"
default: ${{ github.event.pull_request.number }}
Expand Down
7 changes: 6 additions & 1 deletion container/cmd
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,12 @@ is_true() {
debug_mode=false
if is_true "$INPUT_DEBUG" || is_true "$RUNNER_DEBUG"; then
debug_mode=true
( echo "== GitHub ENV VARS ==" ; env | grep -e ^GITHUB -e ^INPUT_ ) >&2
(
echo "== GitHub ENV VARS =="
env | grep -e ^GITHUB -e ^INPUT_
echo "== GitHub Context =="
echo "$INPUT_DEBUG_ALL_DATA"
) >&2
set -x
fi

Expand Down

0 comments on commit 3432236

Please sign in to comment.