From 2acbbc9df615df9670ce158df089d1b40d36605d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Viktor=20Sz=C3=A9pe?= Date: Mon, 8 Jan 2024 02:32:16 +0100 Subject: [PATCH] Dump run context in dot notation (#105) --- .github/workflows/workflow.yml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/.github/workflows/workflow.yml b/.github/workflows/workflow.yml index 7fdba7b..1f52535 100644 --- a/.github/workflows/workflow.yml +++ b/.github/workflows/workflow.yml @@ -52,6 +52,15 @@ jobs: jq --indent 4 --raw-output --color-output '.' <<"GITHUB__CONTEXT" ${{ toJSON(github) }} GITHUB__CONTEXT + - + name: "Dump information in dot notation" + run: | + printf 'github = ' + jq --indent 4 --raw-output --color-output \ + '[paths(scalars) as $p | {"key":$p | join("."), "value":getpath($p)}] | from_entries' \ + <<"GITHUB__CONTEXT" + ${{ toJSON(github) }} + GITHUB__CONTEXT actionlint: name: "Actionlint"