Skip to content

Commit

Permalink
debugging (#617)
Browse files Browse the repository at this point in the history
Co-authored-by: carebare47 <[email protected]>
  • Loading branch information
carebare47 and carebare47 authored Jul 29, 2024
1 parent 60575b6 commit 465d68f
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions docker/molecule/docker/bionic/buildspec.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,15 +30,21 @@ phases:
docker: 19
build:
commands:
- echo $CODEBUILD_SOURCE_VERSION
- git --version
- |
if [[ $CODEBUILD_SOURCE_VERSION == "pr/"* ]]; then
pr_number=${CODEBUILD_SOURCE_VERSION#pr/}
branch=$(curl -s "https://api.github.com/repos/shadow-robot/aurora/pulls/$pr_number" | jq -r '.head.ref')
echo 'is_pr'
elif [[ $CODEBUILD_SOURCE_VERSION =~ ^[0-9a-f]{40}$ ]]; then
echo 'is_hash'
branch=$(git ls-remote --symref origin | grep -m1 $CODEBUILD_SOURCE_VERSION | awk -F '/' '{print $NF}')
else
echo 'is_else'
branch=$CODEBUILD_SOURCE_VERSION
fi
- echo $branch
- cd ..
- rm -rf aurora
- git clone https://github.com/shadow-robot/aurora.git
Expand Down

0 comments on commit 465d68f

Please sign in to comment.