Skip to content

Commit bb2ca48

Browse files
committed
fix: adjust post_gen_hook to properly target repository_provider not platform_provider
1 parent df787be commit bb2ca48

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

hooks/post_gen_project.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@
88

99

1010
REMOVE_PATHS: list[str] = [
11-
"{% if cookiecutter.platform_provider != github %}.github{% endif %}",
12-
"{% if cookiecutter.platform_provider != gitlab %}.gitlab-ci.yml{% endif %}",
13-
"{% if cookiecutter.platform_provider != bitbucket %}.bitbucket-pipelines.yml{% endif %}",
11+
"{% if cookiecutter.repository_provider != github %}.github{% endif %}",
12+
"{% if cookiecutter.repository_provider != gitlab %}.gitlab-ci.yml{% endif %}",
13+
"{% if cookiecutter.repository_provider != bitbucket %}.bitbucket-pipelines.yml{% endif %}",
1414
]
1515

1616

0 commit comments

Comments
 (0)