Skip to content

Commit 4ce1279

Browse files
committed
add workspace.source.dir as safe for git in release pipeline yaml
1 parent e042b53 commit 4ce1279

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.tekton/release-pipeline.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,8 +64,8 @@ spec:
6464
# It will generate release yamls and upload to branch
6565
# release-0.5.6, release-0.5.x and stable
6666
set -eufx
67-
git fetch --tag -v
6867
git config --global --add safe.directory $(workspaces.source.path)
68+
git fetch --tag -v
6969
version=$(git --no-pager tag --points-at HEAD)
7070
[[ -z ${version} ]] && {
7171
echo "No tags detected"

0 commit comments

Comments
 (0)