Skip to content

Commit d5f2d71

Browse files
committed
print the branch
1 parent d0122b9 commit d5f2d71

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

ci-find-smithy-go.sh

+5
Original file line numberDiff line numberDiff line change
@@ -23,13 +23,18 @@ if [ "$branch" == main ]; then
2323
echo aws-sdk-go-v2 is on branch main, stop
2424
exit 0
2525
fi
26+
if [ -z "$branch" ]; then
27+
echo current branch is blank?
28+
exit 1
29+
fi
2630

2731
if [ -n "$GIT_PAT" ]; then
2832
repository=https://$GIT_PAT@github.com/$SMITHY_GO_REPOSITORY
2933
else
3034
repository=https://github.com/$SMITHY_GO_REPOSITORY
3135
fi
3236

37+
echo on branch \"$branch\"
3338
while [ -n "$branch" ] && [[ "$branch" == *-* ]]; do
3439
echo looking for $branch...
3540
git ls-remote --exit-code --heads $repository refs/heads/$branch

0 commit comments

Comments
 (0)