Skip to content

Commit fff1dac

Browse files
committed
fix: use revision instead of origin/main for nightly branch checkout
Tekton workspaces are shallow detached-HEAD clones; remote tracking refs like origin/main are not available after git fetch -a --tags. Using {{revision}} (the triggering commit SHA) matches the pattern already used in .tekton/release-pipeline.yaml.
1 parent 2f765bc commit fff1dac

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

.tekton/generate-coverage-release.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ spec:
147147
for i in $(git tag -l | grep '^v' | sort -rn); do echo -n "$i,"; done | sed 's/,$//'
148148
)
149149
150-
git checkout -B nightly origin/main
150+
git checkout -B nightly {{revision}}
151151
echo nightly > docs/content/VERSION
152152
echo ${allversions} > docs/content/ALLVERSIONS
153153
echo "nightly-$ssa-$(date +%Y%m%d)" > pkg/params/versiondata/version.txt

0 commit comments

Comments
 (0)