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 loading DATABASE_URL from secrets #19

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

sweep-ai[bot]
Copy link

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

PR Feedback (click)

  • 👍 Sweep Did Well
  • 👎 Sweep Needs Improvement
    I created this PR to fix the failing GitHub Actions.## Description
    This PR fixes the issue with the GitHub Actions run failing due to the absence of the DATABASE_URL in the environment. The DATABASE_URL is now loaded from the GitHub secrets if it is not found in the .env files. This ensures that the db:generate command in the @typebot.io/prisma package can execute successfully, which is a dependency for the checkAndReportChatsUsage task.

Summary of Changes

  • Modified the "db:generate" command in packages/prisma/package.json to load the DATABASE_URL from the GitHub secrets if it is not found in the .env files.
  • Added the DATABASE_URL as an environment variable in the GitHub Actions workflow file. This makes the DATABASE_URL available to the workflow run.

Please review the changes and let me know if there are any issues or further changes required.

Copy link

vercel bot commented Dec 27, 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 27, 2023 9:11pm
toolzzchat-builder-landing-page ❌ Failed (Inspect) Dec 27, 2023 9:11pm
toolzzchat-builder-viewer ✅ Ready (Inspect) Visit Preview 💬 Add feedback Dec 27, 2023 9:11pm

Copy link
Author

sweep-ai bot commented Dec 27, 2023

Rollback Files For Sweep

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

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

sweep-ai bot commented Dec 27, 2023

Sandbox Executions

  • Running GitHub Actions for packages/prisma/package.json
Check packages/prisma/package.json with contents:
  • Running GitHub Actions for .github/workflows/main.yml
Check .github/workflows/main.yml with contents:

Ran GitHub Actions for 9567f61e5abaa601f6bf4a304a9dda1797ec6b5b:
• send:
• send:
• send:
• send:
• send:
• send:
• send:
• send:
• send:
• send:
• report-build-status:
• deploy:
• build:
• create-tag:

Copy link
Author

sweep-ai bot commented Dec 27, 2023

Sweeping

Fixing PR: track the progress here.

I'm currently fixing this PR to address the following:

The GitHub Actions run failed with the following error logs:

The command:
Run npm ci
yielded the following error:
##[error]Process completed with exit code 1.

Here are the logs:
npm ERR! cipm can only install packages with an existing package-lock.json or npm-shrinkwrap.json with lockfileVersion >= 1. Run an install with npm@5 or later to generate it, then try again.

npm ERR! A complete log of this run can be found in:
npm ERR!     /home/runner/.npm/_logs/2023-12-27T21_09_06_599Z-debug.log

Making changes according to plan... (step 2/3)

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