Skip to content

Commit

Permalink
fix: Fix the ninjacookie call (#116)
Browse files Browse the repository at this point in the history
Fix ninjacookie call and improve the release workflow.
  • Loading branch information
xmnlab authored Jun 10, 2023
1 parent b18c93e commit 8bd413c
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 11 deletions.
14 changes: 7 additions & 7 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,13 +38,13 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: makim release.dry

# - name: Run semantic release
# if: ${{ github.event_name == 'workflow_dispatch' }}
# env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# run: |
# poetry config pypi-token.pypi ${PYPI_TOKEN}
# makim release.ci
- name: Run semantic release
if: ${{ github.event_name == 'workflow_dispatch' }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
poetry config pypi-token.pypi ${PYPI_TOKEN}
makim release.ci
- name: Generate documentation with changes from semantic-release
run: makim docs.build
Expand Down
6 changes: 2 additions & 4 deletions src/scicookie/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ def call_cookiecutter(profile: Profile, answers: dict):
answers_profile[choice_id] = "yes"

for question_id, answer in answers_profile.items():
cookie_args.append(f'{question_id}="{answer}"')
cookie_args.append(f"{question_id}={answer}")

sh_extras = {
"_in": sys.stdin,
Expand All @@ -79,9 +79,7 @@ def call_cookiecutter(profile: Profile, answers: dict):
"_bg_exc": False,
}

p = sh.cookieninja(
"--no-input", PACKAGE_PATH, *[" ".join(cookie_args)], **sh_extras
)
p = sh.cookieninja("--no-input", PACKAGE_PATH, *cookie_args, **sh_extras)

try:
p.wait()
Expand Down

0 comments on commit 8bd413c

Please sign in to comment.