How do I set up github actions / workflows? #42
-
I want to set up
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
1. Get the workflowsA. Copy the apply, sync, and apply-dry-run workflows to your repo's B. In all three files, replace 2. Set up secretsGo to 3. Validate behaviorA. For B. For It's a good idea to check the 4. Finished!Now you can sit back, relax, and enjoy the automation! |
Beta Was this translation helpful? Give feedback.
1. Get the workflows
A. Copy the apply, sync, and apply-dry-run workflows to your repo's
.github/workflows/
dir.B. In all three files, replace
YOUR_ACCOUNT_ID_HERE
andYOUR_SPYGLASS_DIR_HERE
with your Snowflake account ID and location of your spyglass directory. See How do I set up the CLI? for more information on those values.2. Set up secrets
Go to
Settings -> Secrets and variables -> Actions
and create aSNOWSQL_CONFIG
secret and paste in the contents of your~/.snowsql/config
file (created during initial setup).3. Validate behavior
A. For
apply
, you can push to your master/main branch and check the output of the dry run before replacing the--dry-run
flag with the--confirm
flag.B.