[Fix] Download repository con curl per Windows
- Gitea Actions non clona automaticamente il repo - Download repo da GitHub come ZIP con curl - Estrazione con tar (nativo Windows 10+) - Spostamento files nella working directory - Fix: working directory vuota, nessun Dockerfile
This commit is contained in:
@@ -99,6 +99,21 @@ jobs:
|
|||||||
packages: write
|
packages: write
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
|
- name: Download repository archive
|
||||||
|
run: |
|
||||||
|
echo Downloading repository from GitHub...
|
||||||
|
curl -L -o repo.zip https://github.com/${{ github.repository }}/archive/refs/heads/${{ github.ref_name }}.zip
|
||||||
|
echo Extracting archive...
|
||||||
|
tar -xf repo.zip
|
||||||
|
echo Moving files to current directory...
|
||||||
|
for /d %%d in (*-${{ github.ref_name }}) do (
|
||||||
|
xcopy "%%d\*" . /E /I /Y
|
||||||
|
rmdir "%%d" /S /Q
|
||||||
|
)
|
||||||
|
del repo.zip
|
||||||
|
echo Repository downloaded and extracted
|
||||||
|
shell: cmd
|
||||||
|
|
||||||
- name: Debug - Check working directory
|
- name: Debug - Check working directory
|
||||||
run: |
|
run: |
|
||||||
echo Current directory:
|
echo Current directory:
|
||||||
|
|||||||
Reference in New Issue
Block a user