Skip to content

Commit fb4c3f7

Browse files
committed
refactor: rename the rust github workflows to their expected values and have them removed if needed in the post gen project hook
1 parent b851b18 commit fb4c3f7

File tree

3 files changed

+4
-0
lines changed

3 files changed

+4
-0
lines changed

hooks/post_gen_project.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,10 @@
88

99

1010
REMOVE_PATHS: list[str] = [
11+
"{% if not cookiecutter.add_rust_extension %}rust{% endif %}",
12+
"{% if not cookiecutter.add_rust_extension %}.github/workflows/lint-rust.yml{% endif %}",
13+
"{% if not cookiecutter.add_rust_extension %}.github/workflows/build-rust.yml{% endif %}",
14+
"{% if not cookiecutter.add_rust_extension %}.github/workflows/test-rust.yml{% endif %}",
1115
"{% if cookiecutter.repository_provider != 'github' %}.github{% endif %}",
1216
"{% if cookiecutter.repository_provider != 'gitlab' %}.gitlab-ci.yml{% endif %}",
1317
"{% if cookiecutter.repository_provider != 'bitbucket' %}bitbucket-pipelines.yml{% endif %}",

{{cookiecutter.project_name}}/.github/workflows/{% if cookiecutter.add_rust_extension == 'y' %} lint-rust.yml {%- endif %} renamed to {{cookiecutter.project_name}}/.github/workflows/lint-rust.yml

File renamed without changes.

{{cookiecutter.project_name}}/.github/workflows/{% if cookiecutter.add_rust_extension == 'y' %} test-rust.yml {%- endif %} renamed to {{cookiecutter.project_name}}/.github/workflows/test-rust.yml

File renamed without changes.

0 commit comments

Comments
 (0)