fix: enhance repository checkout process with additional logging
Some checks failed
Deploy Production / deploy (push) Failing after 1m2s
Some checks failed
Deploy Production / deploy (push) Failing after 1m2s
This commit is contained in:
@@ -17,11 +17,16 @@ jobs:
|
||||
- name: Checkout code
|
||||
shell: sh
|
||||
run: |
|
||||
git clone $GITHUB_SERVER_URL/$GITHUB_REPOSITORY.git /workspace/repo || true
|
||||
echo "Cloning repository..."
|
||||
git clone $GITHUB_SERVER_URL/$GITHUB_REPOSITORY.git /workspace/repo
|
||||
cd /workspace/repo
|
||||
echo "Fetching branch $GITHUB_REF_NAME..."
|
||||
git fetch origin $GITHUB_REF_NAME
|
||||
echo "Checking out branch..."
|
||||
git checkout $GITHUB_REF_NAME
|
||||
git pull origin $GITHUB_REF_NAME
|
||||
echo "Repository checked out successfully"
|
||||
ls -la
|
||||
|
||||
- name: Build Docker Image
|
||||
shell: sh
|
||||
|
||||
Reference in New Issue
Block a user