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 DATABASE_URL #18

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 a DATABASE_URL in the environment. The fix involves two main changes:
  1. A step has been added to the GitHub Actions workflow to set the DATABASE_URL environment variable before the "checkAndReportChatsUsage" task is run. The value for this variable is taken from a GitHub secret.

  2. The error handling in the "executeCommand.ts" script has been improved to provide a more descriptive error message when the DATABASE_URL is not found in the environment.

Summary of Changes

  • Modified ".github/workflows/main.yml" to add a step to set the DATABASE_URL environment variable.
  • Modified "packages/prisma/scripts/executeCommand.ts" to improve the error handling for when the DATABASE_URL is not found in the environment.

Please review and let me know if there are any concerns.

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

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 .github/workflows/main.yml
Check .github/workflows/main.yml with contents:

Ran GitHub Actions for f6bf20a87affdcc1afce9219408069e469d42aee:

  • Running GitHub Actions for packages/prisma/scripts/executeCommand.ts
Check packages/prisma/scripts/executeCommand.ts with contents:

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 pnpm install
yielded the following error:
##[error]Process completed with exit code 127.

Here are the logs:
/home/runner/work/_temp/2f2b4013-73b0-4a9d-9160-45b7c0201505.sh: line 1: pnpm: command not found

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