-
Notifications
You must be signed in to change notification settings - Fork 1
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
Conversation
@@ -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 }}', '-', '_')); |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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.
Quality Gate passedIssues Measures |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
I did not use the right reference