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
|
- name: Checkout code
|
||||||
shell: sh
|
shell: sh
|
||||||
run: |
|
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
|
cd /workspace/repo
|
||||||
|
echo "Fetching branch $GITHUB_REF_NAME..."
|
||||||
git fetch origin $GITHUB_REF_NAME
|
git fetch origin $GITHUB_REF_NAME
|
||||||
|
echo "Checking out branch..."
|
||||||
git checkout $GITHUB_REF_NAME
|
git checkout $GITHUB_REF_NAME
|
||||||
git pull origin $GITHUB_REF_NAME
|
git pull origin $GITHUB_REF_NAME
|
||||||
|
echo "Repository checked out successfully"
|
||||||
|
ls -la
|
||||||
|
|
||||||
- name: Build Docker Image
|
- name: Build Docker Image
|
||||||
shell: sh
|
shell: sh
|
||||||
|
|||||||
Reference in New Issue
Block a user