Skip to content

Commit

Permalink
Fix ci.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
lbonaldo committed Oct 12, 2023
1 parent 5bf938d commit 77a1aa6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,9 @@ jobs:
git checkout -b ${GITHUB_REF#refs/heads/}-testlogs
git ls-remote --exit-code --heads origin ${GITHUB_REF#refs/heads/}-testlogs
if [ "$?" == "2" ] ; then # exit-code 2 if the branch doesn't exist
echo "Branch doesn't exist. Skip fetching"
echo "Branch doesn't exist. Skip fetching."
else # if a branch exists, fetch it
git fetch origin ${GITHUB_REF#refs/heads/}-testlogs
git fetch origin ${GITHUB_REF#refs/heads/}-testlogs
git cherry-pick $(git log -n 1 origin/${GITHUB_REF#refs/heads/}-testlogs --pretty=format:"%H")
fi
fi
Expand Down

0 comments on commit 77a1aa6

Please sign in to comment.