fix: use environment file to manage output

resolves 1Password/load-secrets-action#27
This commit is contained in:
Jasper Concepcion
2023-02-14 00:13:38 +08:00
committed by GitHub
parent 0a7975f916
commit 936f62b7d9

View File

@@ -90,7 +90,7 @@ populating_secret() {
# Prepare the secret_value to be outputed properly (especially multiline secrets) # Prepare the secret_value to be outputed properly (especially multiline secrets)
secret_value=$(echo "$secret_value" | awk -v ORS='%0A' '1') secret_value=$(echo "$secret_value" | awk -v ORS='%0A' '1')
echo "::set-output name=$env_var::$secret_value" echo "$env_var=$secret_value" >> "$GITHUB_OUTPUT"
fi fi
managed_variables+=("$env_var") managed_variables+=("$env_var")