Skip to content

Commit 72212e8

Browse files
committed
Only output conf when debug flag is set
We don't want to output the user config in their actions run unnecessarily. When the user turns on the debug flag, the config can be printed otherwise it stays hidden from stdout.
1 parent a5c31e7 commit 72212e8

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

github-action/src/deploy-config.sh

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -133,8 +133,11 @@ echo "Listing the NGINX configuration file paths in the tarball."
133133
tar -tf "$config_tarball"
134134

135135
encoded_config_tarball=$(base64 "$config_tarball")
136-
echo "The base64 encoded NGINX configuration tarball"
137-
echo "$encoded_config_tarball"
136+
137+
if [[ "$debug" == true ]]; then
138+
echo "The base64 encoded NGINX configuration tarball"
139+
echo "$encoded_config_tarball"
140+
fi
138141
echo ""
139142

140143
# Synchronize the NGINX configuration tarball to the NGINXaaS for Azure deployment.

0 commit comments

Comments
 (0)