Debug action.yml

This commit is contained in:
linguist
2020-12-31 15:07:28 +01:00
parent 60585283bd
commit 13c37c9320

View File

@@ -367,14 +367,15 @@ runs:
METRICS_REF=$(echo $METRICS_ACTION | sed -E 's/^.*metrics//g') METRICS_REF=$(echo $METRICS_ACTION | sed -E 's/^.*metrics//g')
echo "Running on $METRICS_SOURCE/metrics@$METRICS_REF" 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 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 echo $INPUT >> .env
done done
env | grep -E '^(GITHUB|ACTIONS|CI)' >> .env env | grep -E '^(GITHUB|ACTIONS|CI)' >> .env
# Debug
cat .env cat .env
exit 1 exit 1