diff --git a/.forgejo/workflows/deploy.yaml b/.forgejo/workflows/deploy.yaml index 8b0caf3..376ab38 100644 --- a/.forgejo/workflows/deploy.yaml +++ b/.forgejo/workflows/deploy.yaml @@ -21,7 +21,15 @@ jobs: shell: sh steps: - # SUBSTITUÍDO: checkout@v4 por Git manual para evitar erro de falta de Node.js + # PASSO NOVO: Instala Git (e Node se necessário no futuro) + - name: Install System Dependencies + run: | + 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 + fi + - name: Checkout code run: | git clone --depth 1 --branch dev https://${{ secrets.FORGEJO_TOKEN }}@pipe.gohorsejobs.com/${{ github.repository }}.git . @@ -64,7 +72,14 @@ jobs: shell: sh steps: - # SUBSTITUÍDO: checkout@v4 por Git manual + - name: Install System Dependencies + run: | + if command -v apk >/dev/null 2>&1; then + apk add --no-cache git wget + elif command -v apt-get >/dev/null 2>&1; then + apt-get update && apt-get install -y git wget + fi + - name: Checkout code run: | git clone --depth 1 --branch dev https://${{ secrets.FORGEJO_TOKEN }}@pipe.gohorsejobs.com/${{ github.repository }}.git .