Debug action.yml

This commit is contained in:
linguist
2020-12-31 14:56:27 +01:00
parent 49739a35ce
commit 60585283bd

View File

@@ -368,7 +368,14 @@ runs:
echo "Running on $METRICS_SOURCE/metrics@$METRICS_REF"
# Debug
echo $INPUTS
touch .env
for INPUT in $(echo $INPUTS | jq -r "to_entries|map(\"\(.key)=\(.value|tostring)\")|.[]" ); do
echo $INPUT >> .env
done
env | grep -E '^(GITHUB|ACTIONS|CI)' >> .env
cat .env
exit 1
# If using official action, use docker image from GitHub registry
@@ -384,11 +391,10 @@ runs:
# Run docker image with current environment
echo "Using $METRICS_IMAGE"
env | grep -E '^(INPUT|GITHUB|RUNNER|ACTIONS|HOME|CI)' > .env
docker run --env-file .env $METRICS_IMAGE
rm .env
shell: bash
env:
METRICS_ACTION: ${{ github.action }}
METRICS_ACTION_PATH: ${{ github.action_path }}
INPUTS: ${{ inputs }}
INPUTS: ${{ toJson(inputs) }}