Skip to content

Commit

Permalink
Update uv command to create project
Browse files Browse the repository at this point in the history
  • Loading branch information
rehan892 committed Dec 23, 2024
1 parent ee8aec0 commit fc9198b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/setup-project.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,4 +34,4 @@ jobs:
git config --global user.name "CI CD Setup Project"
REPO_URL="https://github.com/rehan892/test-scaf-templates/"
$HOME/.local/bin/scaf myproject --no-input $REPO_URL
$HOME/.local/bin/scaf myproject --no-input --checkout main $REPO_URL
10 changes: 6 additions & 4 deletions hooks/post_gen_project.py
Original file line number Diff line number Diff line change
Expand Up @@ -166,17 +166,17 @@ def set_challenge_settings_in_config_map():
set_flag(
local_configmap_path,
"__CHALLENGE_SESSION_ID__",
value=challenge_config['session_id']
value=challenge_config["session_id"],
)
set_flag(
local_configmap_path,
"__CHALLENGE_JWT_TOKEN__",
value=challenge_config['access_token']
value=challenge_config["access_token"],
)
set_flag(
local_configmap_path,
"__CHALLENGE_BASE_URL__",
value=challenge_config['base_url']
value=challenge_config["base_url"],
)


Expand Down Expand Up @@ -222,7 +222,9 @@ def remove_graphql_files():


def remove_challenge_files():
challenge_dir = os.path.join("backend", "{{ cookiecutter.project_slug }}", "challenge")
challenge_dir = os.path.join(
"backend", "{{ cookiecutter.project_slug }}", "challenge"
)
shutil.rmtree(challenge_dir)


Expand Down

0 comments on commit fc9198b

Please sign in to comment.