revert(ci): restore original pipeline — network issue is server-side
This commit is contained in:
@@ -21,10 +21,15 @@ jobs:
|
||||
env:
|
||||
TOKEN: ${{ secrets.GIT_TOKEN }}
|
||||
run: |
|
||||
# Fix DNS in Alpine container
|
||||
echo "nameserver 8.8.8.8" > /etc/resolv.conf
|
||||
if ! command -v git >/dev/null 2>&1; then
|
||||
if command -v apk >/dev/null 2>&1; then
|
||||
apk add --no-cache git
|
||||
elif command -v apt-get >/dev/null 2>&1; then
|
||||
apt-get update && apt-get install -y git
|
||||
else
|
||||
echo "Git not found and no package manager detected"
|
||||
exit 1
|
||||
fi
|
||||
fi
|
||||
CLEAN_TOKEN=$(printf '%s' "${TOKEN}" | tr -d '\r\n')
|
||||
git clone "http://oauth2:${CLEAN_TOKEN}@git.a-crm.controlsystem.kz/AVTEX/XFlow.git" .
|
||||
|
||||
Reference in New Issue
Block a user