Skip to content

Commit

Permalink
fix: do not write github provider files for gitlab
Browse files Browse the repository at this point in the history
  • Loading branch information
gvauter committed Aug 29, 2024
1 parent fc84b25 commit dba5a41
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions trestlebot/entrypoints/init.py
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,9 @@ def _create_directories(self, args: argparse.Namespace) -> None:

def _copy_provider_files(self, args: argparse.Namespace) -> None:
"""Copy the CICD provider files to the new trestlebot workspace"""
if args.provider == GITLAB:
return

if args.provider == GITHUB:
provider_dir = pathlib.Path(args.working_dir).joinpath(
pathlib.Path(GITHUB_WORKFLOWS_DIR)
Expand Down

0 comments on commit dba5a41

Please sign in to comment.