Skip to content

chore(ci): create valid env#96

Merged
99mini merged 1 commit intomainfrom
chore/github-action-ci
Jun 2, 2025
Merged

chore(ci): create valid env#96
99mini merged 1 commit intomainfrom
chore/github-action-ci

Conversation

@99mini
Copy link
Copy Markdown
Owner

@99mini 99mini commented Jun 2, 2025

No description provided.

Copilot AI review requested due to automatic review settings June 2, 2025 04:52
@99mini 99mini merged commit 1f6c39b into main Jun 2, 2025
1 check passed
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR updates the GitHub Actions workflow for the admin deployment ensuring that the environment variable for the front-end admin app is set in the correct directory.

  • Update the "Load environment variables" step to navigate into the apps/frontend/admin directory before setting the .env file.
  • Return to the original directory using cd - after the command.

Comment on lines +36 to +39
run: |
cd apps/frontend/admin
echo "VITE_VOYAGE_API_KEY=${{ secrets.VOYAGE_API_KEY }}" > .env
cd -
Copy link

Copilot AI Jun 2, 2025

Choose a reason for hiding this comment

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

Consider using the 'working-directory' attribute in this GitHub Actions step instead of manually changing directories, which can improve clarity and reduce potential errors.

Suggested change
run: |
cd apps/frontend/admin
echo "VITE_VOYAGE_API_KEY=${{ secrets.VOYAGE_API_KEY }}" > .env
cd -
working-directory: apps/frontend/admin
run: |
echo "VITE_VOYAGE_API_KEY=${{ secrets.VOYAGE_API_KEY }}" > .env

Copilot uses AI. Check for mistakes.
@99mini 99mini deleted the chore/github-action-ci branch June 2, 2025 04:53
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.

2 participants