Skip to content

Commit

Permalink
print the branch
Browse files Browse the repository at this point in the history
  • Loading branch information
lucix-aws committed Aug 17, 2023
1 parent d0122b9 commit d5f2d71
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions ci-find-smithy-go.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,18 @@ if [ "$branch" == main ]; then
echo aws-sdk-go-v2 is on branch main, stop
exit 0
fi
if [ -z "$branch" ]; then
echo current branch is blank?
exit 1
fi

if [ -n "$GIT_PAT" ]; then
repository=https://$GIT_PAT@github.com/$SMITHY_GO_REPOSITORY
else
repository=https://github.com/$SMITHY_GO_REPOSITORY
fi

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

0 comments on commit d5f2d71

Please sign in to comment.