Encode uri

This commit is contained in:
linguist
2020-12-31 16:03:14 +01:00
parent 14eed1d50a
commit 54900bcf26

View File

@@ -382,7 +382,7 @@ runs:
# Retrieve inputs and GitHub variables and store them in environment file # Retrieve inputs and GitHub variables and store them in environment file
echo "Generating environment file" echo "Generating environment file"
touch .env touch .env
for INPUT in $(echo $INPUTS | jq -r 'to_entries|map("INPUT_\(.key|ascii_upcase)=\(.value)")|.[]'); do for INPUT in $(echo $INPUTS | jq -r 'to_entries|map("INPUT_\(.key|ascii_upcase)=\(.value|@uri)")|.[]'); do
echo $INPUT >> .env echo $INPUT >> .env
done done
env | grep -E '^(GITHUB|ACTIONS|CI)' >> .env env | grep -E '^(GITHUB|ACTIONS|CI)' >> .env