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 GitHub Actions run by setting up DATABASE_URL #8

Closed
wants to merge 3 commits into from

Conversation

sweep-ai[bot]
Copy link

@sweep-ai sweep-ai bot commented Dec 26, 2023

PR Feedback (click)

  • 👍 Sweep Did Well
  • 👎 Sweep Needs Improvement

I created this PR to address this rule:

"None"

Description

This PR fixes the issue with the GitHub Actions run failing due to the absence of the DATABASE_URL environment variable.

The problem was occurring when the pnpm turbo run checkAndReportChatsUsage command was executed, which depends on the @typebot.io/prisma#db:generate command. This command uses the dotenv package to load environment variables from .env files before running the db-generate.ts script. However, the DATABASE_URL environment variable was not being set correctly in the GitHub Actions environment.

To solve this issue, a new step has been added to the GitHub Actions workflow to set up the DATABASE_URL environment variable before the pnpm turbo run checkAndReportChatsUsage command is executed.

Summary of Changes

  • Modified .github/workflows/main.yml to add a new step for setting up the DATABASE_URL environment variable. The value for this variable is securely stored in GitHub Secrets and is set in the environment using the env field in the workflow file.

Copy link
Author

sweep-ai bot commented Dec 26, 2023

Rollback Files For Sweep

  • Rollback changes to .github/workflows/main.yml

Copy link

vercel bot commented Dec 26, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
toolzzchat-builder ✅ Ready (Inspect) Visit Preview 💬 Add feedback Dec 26, 2023 8:33pm
toolzzchat-builder-landing-page ❌ Failed (Inspect) Dec 26, 2023 8:33pm
toolzzchat-builder-viewer ✅ Ready (Inspect) Visit Preview 💬 Add feedback Dec 26, 2023 8:33pm

@sweep-ai sweep-ai bot added the sweep label Dec 26, 2023
Copy link
Author

sweep-ai bot commented Dec 26, 2023

Sandbox Executions

Copy link
Author

sweep-ai bot commented Dec 26, 2023

The command:
Run pnpm install
yielded the following error:
##[error]Process completed with exit code 127.
Here are the logs:

/home/runner/work/_temp/2b28d26e-bcd2-48d6-84f4-c56facafa6f2.sh: line 1: pnpm: command not found

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant