Skip to content

Commit 5babc72

Browse files
committed
put both configs in the same file
1 parent 00c2a3c commit 5babc72

File tree

1 file changed

+7
-10
lines changed

1 file changed

+7
-10
lines changed

.github/workflows/test_with_clone.yaml

+7-10
Original file line numberDiff line numberDiff line change
@@ -56,19 +56,16 @@ jobs:
5656
echo 'authenticator = "SNOWFLAKE"' >> $config_file_dpe
5757
5858
# Config file for SYSADMIN
59-
config_file_sysadmin=$(mktemp)
60-
echo 'default_connection_name = "sysadmin"' >> $config_file_sysadmin
61-
echo '[connections.sysadmin]' >> $config_file_sysadmin
62-
echo "account = \"${SNOWFLAKE_ACCOUNT}\"" >> $config_file_sysadmin
63-
echo "user = \"${SNOWFLAKE_USER}\"" >> $config_file_sysadmin
64-
echo "role = \"${SNOWFLAKE_SCHEMACHANGE_ROLE}\"" >> $config_file_sysadmin
65-
echo "password = \"${SNOWFLAKE_PASSWORD}\"" >> $config_file_sysadmin
66-
echo "warehouse = \"${SNOWFLAKE_WAREHOUSE}\"" >> $config_file_sysadmin
67-
echo 'authenticator = "SNOWFLAKE"' >> $config_file_sysadmin
59+
echo '[connections.sysadmin]' >> $config_file_dpe
60+
echo "account = \"${SNOWFLAKE_ACCOUNT}\"" >> $config_file_dpe
61+
echo "user = \"${SNOWFLAKE_USER}\"" >> $config_file_dpe
62+
echo "role = \"${SNOWFLAKE_SCHEMACHANGE_ROLE}\"" >> $config_file_dpe
63+
echo "password = \"${SNOWFLAKE_PASSWORD}\"" >> $config_file_dpe
64+
echo "warehouse = \"${SNOWFLAKE_WAREHOUSE}\"" >> $config_file_dpe
65+
echo 'authenticator = "SNOWFLAKE"' >> $config_file_dpe
6866
6967
# Write config paths to environment
7068
echo "SNOWFLAKE_CONFIG_PATH_DPE=$config_file_dpe" >> $GITHUB_ENV
71-
echo "SNOWFLAKE_CONFIG_PATH_SYSADMIN=$config_file_sysadmin" >> $GITHUB_ENV
7269
7370
- name: Install Snowflake CLI with DPE_ENGINEER config
7471
uses: Snowflake-Labs/[email protected]

0 commit comments

Comments
 (0)