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

feat: add .env file sync scripts #268

Merged
merged 3 commits into from
Aug 29, 2024
Merged

feat: add .env file sync scripts #268

merged 3 commits into from
Aug 29, 2024

Conversation

RaoHai
Copy link
Contributor

@RaoHai RaoHai commented Aug 29, 2024

  • 微调一下功能。
  • 加一下 push 和进度条

Copy link

vercel bot commented Aug 29, 2024

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

Name Status Preview Comments Updated (UTC)
petercat ✅ Ready (Inspect) Visit Preview 💬 Add feedback Aug 29, 2024 8:23am

Copy link

Walkthrough

此 PR 添加了用于同步 .env 文件的脚本,并在现有功能上进行了微调,包括添加 push 功能和进度条。

Changes

文件 描述
.github/workflows/aws-preview.yml, .github/workflows/aws-prod.yml 更新了工作流配置以支持新的 .env 文件同步脚本
package.json 添加了新的 npm 脚本命令用于 .env 文件的 pull 和 push 操作
scripts/envs.py 新增脚本文件,用于从 S3 拉取和推送 .env 文件,并包含进度条显示功能
scripts/sync_envs.py 删除旧的 .env 文件同步脚本

self._seen_so_far = 0
self._lock = None

def __call__(self, bytes_amount):

Choose a reason for hiding this comment

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

忽略多线程可能会导致进度条显示不准确,建议在多线程环境下使用锁机制。

Copy link

filepath function passed SUBTOTAL
tests/test_main.py test_health_checker 1 1
tests/utils/test_path_to_hunk.py TestPathToHunk.test_basic_covnert 1 1
tests/utils/test_path_to_hunk.py TestPathToHunk.test_parse 1 1
TOTAL 3 3

@RaoHai RaoHai merged commit 1a43239 into main Aug 29, 2024
4 checks passed
@RaoHai RaoHai deleted the feat/support-sync-env branch August 29, 2024 08:28
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.

1 participant