We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d0122b9 commit d5f2d71Copy full SHA for d5f2d71
ci-find-smithy-go.sh
@@ -23,13 +23,18 @@ if [ "$branch" == main ]; then
23
echo aws-sdk-go-v2 is on branch main, stop
24
exit 0
25
fi
26
+if [ -z "$branch" ]; then
27
+ echo current branch is blank?
28
+ exit 1
29
+fi
30
31
if [ -n "$GIT_PAT" ]; then
32
repository=https://$GIT_PAT@github.com/$SMITHY_GO_REPOSITORY
33
else
34
repository=https://github.com/$SMITHY_GO_REPOSITORY
35
36
37
+echo on branch \"$branch\"
38
while [ -n "$branch" ] && [[ "$branch" == *-* ]]; do
39
echo looking for $branch...
40
git ls-remote --exit-code --heads $repository refs/heads/$branch
0 commit comments