@@ -12,43 +12,8 @@ jobs:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- name: Manual git checkout
|
||||
run: |
|
||||
# Debug environment variables
|
||||
echo "GITHUB_SERVER_URL: ${{ github.server_url }}"
|
||||
echo "GITHUB_REPOSITORY: ${{ github.repository }}"
|
||||
echo "GITHUB_SHA: ${{ github.sha }}"
|
||||
echo "GITHUB_REF: ${{ github.ref }}"
|
||||
|
||||
# Try multiple URLs with fallbacks
|
||||
echo "=== Attempting git clone with multiple approaches ==="
|
||||
|
||||
# First try: HTTPS with certificate verification disabled
|
||||
echo "Trying HTTPS with no SSL verification..."
|
||||
if git -c http.sslVerify=false clone https://dogar.darkhelm.org/${{ github.repository }}.git . 2>/dev/null; then
|
||||
echo "HTTPS clone successful"
|
||||
else
|
||||
echo "HTTPS failed, trying HTTP..."
|
||||
# Second try: HTTP (insecure but might work)
|
||||
if git clone http://dogar.darkhelm.org/${{ github.repository }}.git . 2>/dev/null; then
|
||||
echo "HTTP clone successful"
|
||||
else
|
||||
echo "HTTP failed, trying original server URL..."
|
||||
# Third try: Original server URL (might work if networking fixed)
|
||||
git clone ${{ github.server_url }}/${{ github.repository }}.git . || {
|
||||
echo "All clone attempts failed - cannot continue without project files"
|
||||
exit 1
|
||||
}
|
||||
fi
|
||||
fi
|
||||
|
||||
# Checkout specific commit if we have a real clone
|
||||
if [ -d .git ]; then
|
||||
git checkout ${{ github.sha }} || echo "Checkout failed, using current HEAD"
|
||||
fi
|
||||
|
||||
echo "Repository setup complete"
|
||||
ls -la
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Install Python 3.13
|
||||
run: |
|
||||
@@ -126,43 +91,8 @@ jobs:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- name: Manual git checkout
|
||||
run: |
|
||||
# Debug environment variables
|
||||
echo "GITHUB_SERVER_URL: ${{ github.server_url }}"
|
||||
echo "GITHUB_REPOSITORY: ${{ github.repository }}"
|
||||
echo "GITHUB_SHA: ${{ github.sha }}"
|
||||
echo "GITHUB_REF: ${{ github.ref }}"
|
||||
|
||||
# Try multiple URLs with fallbacks
|
||||
echo "=== Attempting git clone with multiple approaches ==="
|
||||
|
||||
# First try: HTTPS with certificate verification disabled
|
||||
echo "Trying HTTPS with no SSL verification..."
|
||||
if git -c http.sslVerify=false clone https://dogar.darkhelm.org/${{ github.repository }}.git . 2>/dev/null; then
|
||||
echo "HTTPS clone successful"
|
||||
else
|
||||
echo "HTTPS failed, trying HTTP..."
|
||||
# Second try: HTTP (insecure but might work)
|
||||
if git clone http://dogar.darkhelm.org/${{ github.repository }}.git . 2>/dev/null; then
|
||||
echo "HTTP clone successful"
|
||||
else
|
||||
echo "HTTP failed, trying original server URL..."
|
||||
# Third try: Original server URL (might work if networking fixed)
|
||||
git clone ${{ github.server_url }}/${{ github.repository }}.git . || {
|
||||
echo "All clone attempts failed - cannot continue without project files"
|
||||
exit 1
|
||||
}
|
||||
fi
|
||||
fi
|
||||
|
||||
# Checkout specific commit if we have a real clone
|
||||
if [ -d .git ]; then
|
||||
git checkout ${{ github.sha }} || echo "Checkout failed, using current HEAD"
|
||||
fi
|
||||
|
||||
echo "Repository setup complete"
|
||||
ls -la
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Install Node.js 24
|
||||
run: |
|
||||
|
||||
Reference in New Issue
Block a user