-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
6c1c641
commit aaf5785
Showing
1 changed file
with
18 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
name: Git clone | ||
description: Creates a shallow clone of the specified repo branch | ||
inputs: | ||
- {name: Repo URI, type: URI} | ||
- {name: Branch, type: String, default: master} | ||
outputs: | ||
- {name: Repo dir, type: Directory} | ||
implementation: | ||
container: | ||
image: alpine/git | ||
command: | ||
- git | ||
- clone | ||
- --depth=1 | ||
- --branch | ||
- inputValue: Branch | ||
- inputValue: Repo URI | ||
- outputPath: Repo dir |