Skip to content

Commit

Permalink
Try again
Browse files Browse the repository at this point in the history
  • Loading branch information
calvertdw committed Nov 22, 2024
1 parent a40badb commit 148ffbc
Showing 1 changed file with 15 additions and 13 deletions.
28 changes: 15 additions & 13 deletions .github/workflows/gradle-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ jobs:
REPOS: ${{ inputs.extra-repos }}
CURRENT_REF: ${{ github.head_ref }}
REF: ${{ github.ref }}
SHA: ${{ github.sha }}
ROSIE_PERSONAL_ACCESS_TOKEN: ${{ secrets.ROSIE_PERSONAL_ACCESS_TOKEN }}
run: |
# Checkout integrated dependency repositories
Expand All @@ -81,27 +82,28 @@ jobs:
git -c protocol.version=2 clone --depth 1 https://@github.com/ihmcrobotics/$repo.git
fi
else
echo "::group::Initializing repository-group/$repo"
echo "::command::git init repository-group/$repo"
git init repository-group/$repo
echo "::endgroup::"
cd repository-group/$repo
echo "Disabling automatic garbage collection"
git config --local gc.auto 0
# echo "::group::Initializing repository-group/$repo"
# echo "::command::git init repository-group/$repo"
# git init repository-group/$repo
# echo "::endgroup::"
# cd repository-group/$repo
#
# echo "Disabling automatic garbage collection"
# git config --local gc.auto 0

echo "Adding remote for $repo"
if [ -n "$ROSIE_PERSONAL_ACCESS_TOKEN" ]; then
echo "Using ihmc-rosie personal access token"
git remote add origin https://"$ROSIE_PERSONAL_ACCESS_TOKEN"@github.com/ihmcrobotics/$repo.git
echo "[command]git -c protocol.version=2 clone --depth 1 --progress --force --single-branch --branch $CURRENT_REF https://"$ROSIE_PERSONAL_ACCESS_TOKEN"@github.com/ihmcrobotics/$repo.git repository-group/$repo"
git -c protocol.version=2 clone --depth 1 --progress --force --single-branch --branch $CURRENT_REF https://"$ROSIE_PERSONAL_ACCESS_TOKEN"@github.com/ihmcrobotics/$repo.git repository-group/$repo
else
git remote add origin https://github.com/ihmcrobotics/$repo.git repository-group/$repo
fi

echo "git -c protocol.version=2 fetch --no-tags --prune --no-recurse-submodules --depth 1 origin $REF"
git -c protocol.version=2 fetch --no-tags --prune --no-recurse-submodules --depth 1 origin $REF
echo "git checkout --progress --force FETCH_HEAD"
git checkout --progress --force FETCH_HEAD
# echo "git -c protocol.version=2 fetch --no-tags --prune --no-recurse-submodules --depth 1 origin $REF"
# git -c protocol.version=2 fetch --no-tags --prune --no-recurse-submodules --depth 1 origin $REF
# echo "git checkout --progress --force FETCH_HEAD"
# git checkout --progress --force FETCH_HEAD
fi

cd ../../
Expand Down

0 comments on commit 148ffbc

Please sign in to comment.