Skip to content

Commit

Permalink
fix submodule/pipline issue, attempt 2
Browse files Browse the repository at this point in the history
  • Loading branch information
aperijake committed Aug 9, 2024
1 parent 8b3b500 commit 6c7d311
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/ci-cd-pipeline.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,10 @@ jobs:
ssh -T -o ConnectTimeout=10 ${{ secrets.VM_USERNAME }}@${{ secrets.VM_IP }} << 'EOF'
set -e # Exit on error
# Start the SSH agent and add the SSH key
eval "$(ssh-agent -s)"
ssh-add ~/.ssh/id_ed25519
cd ~/aperi-mech
echo "Fetching git branches..."
git fetch --all
Expand All @@ -100,8 +104,8 @@ jobs:
# or, it will be automatically updated when this action runs again.
# Update submodule URLs to use HTTPS
echo "Updating submodule URLs to use HTTPS..."
git submodule foreach 'git config submodule.${name}.url https://${{ secrets.CICD_REPO_SECRET }}@github.com/${{ secrets.REPO_OWNER }}/${name}.git'
echo "Updating submodule URLs to use SSH..."
git submodule foreach 'git config submodule.${name}.url git@github.com:${{ secrets.REPO_OWNER }}/${name}.git'
echo "Initializing and updating submodules..."
git submodule update --init --recursive --remote
Expand Down

0 comments on commit 6c7d311

Please sign in to comment.