From 13c37c9320bb1a30c23e7b33758372b293902538 Mon Sep 17 00:00:00 2001 From: linguist <22963968+lowlighter@users.noreply.github.com> Date: Thu, 31 Dec 2020 15:07:28 +0100 Subject: [PATCH] Debug action.yml --- action.yml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/action.yml b/action.yml index d27aa951..a97109e2 100644 --- a/action.yml +++ b/action.yml @@ -367,14 +367,15 @@ runs: METRICS_REF=$(echo $METRICS_ACTION | sed -E 's/^.*metrics//g') echo "Running on $METRICS_SOURCE/metrics@$METRICS_REF" - # Debug + # Retrieve inputs and GitHub environments to pass them later to spawned docker image + echo "Generating environment file" touch .env - for INPUT in $(echo $INPUTS | jq -r "to_entries|map(\"\(.key)=\(.value|tostring)\")|.[]" ); do + for INPUT in $(echo $INPUTS | jq -r 'to_entries|map("INPUT_\(.key|ascii_upcase)=\(.value)")|.[]'); do echo $INPUT >> .env done env | grep -E '^(GITHUB|ACTIONS|CI)' >> .env - + # Debug cat .env exit 1