Skip to content
This repository has been archived by the owner on Nov 5, 2024. It is now read-only.

How do I set up github actions / workflows? #42

Answered by spyglass-software
APTy asked this question in Q&A
Discussion options

You must be logged in to vote

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 and YOUR_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 a SNOWSQL_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.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by APTy
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants