Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix Snowflake cleanup #130

Merged
merged 2 commits into from
Jul 17, 2024
Merged

Fix Snowflake cleanup #130

merged 2 commits into from
Jul 17, 2024

Conversation

philerooski
Copy link
Contributor

I did not use the right reference

@@ -52,7 +51,7 @@ jobs:
run: |
snow sql \
-q "
SET safe_environment_identifier = (SELECT REPLACE('$GITHUB_REF_NAME', '-', '_'));
SET safe_environment_identifier = (SELECT REPLACE('${{ github.event.ref }}', '-', '_'));
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I haven't looked very closely, but we will want to be careful to not bring down main / dev databases and tables. Only for feature branches in the future.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That could only happen if we delete the main branch, which would be catastrophic in other ways. But no need to compound the damage. I added a conditional on this job just in case.

Copy link

sonarcloud bot commented Jul 17, 2024

Copy link
Contributor

@rxu17 rxu17 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@philerooski philerooski merged commit 22803f2 into main Jul 17, 2024
18 checks passed
@philerooski philerooski deleted the etl-659-bonus-feature-fix branch July 17, 2024 19:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants