[Fix] Clone da repository Gitea invece di GitHub
- Cambiato URL da github.com a gitea.home-nas-ds.org - Usa REGISTRY_TOKEN per autenticazione git clone - Embedded credentials nell'URL (username:token@host) - Risolve: richiesta credenziali GitHub
This commit is contained in:
@@ -101,8 +101,8 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- name: Checkout repository with Git
|
- name: Checkout repository with Git
|
||||||
run: |
|
run: |
|
||||||
echo ===== Cloning repository =====
|
echo ===== Cloning repository from Gitea =====
|
||||||
git clone --depth 1 --branch ${{ github.ref_name }} https://github.com/${{ github.repository }}.git repo
|
git clone --depth 1 --branch ${{ github.ref_name }} https://alessio:%REGISTRY_TOKEN%@gitea.home-nas-ds.org/${{ github.repository }}.git repo
|
||||||
if errorlevel 1 (
|
if errorlevel 1 (
|
||||||
echo Failed to clone repository
|
echo Failed to clone repository
|
||||||
exit /b 1
|
exit /b 1
|
||||||
@@ -120,6 +120,8 @@ jobs:
|
|||||||
dir /B
|
dir /B
|
||||||
exit /b 1
|
exit /b 1
|
||||||
)
|
)
|
||||||
|
env:
|
||||||
|
REGISTRY_TOKEN: ${{ secrets.REGISTRY_TOKEN }}
|
||||||
shell: cmd
|
shell: cmd
|
||||||
|
|
||||||
- name: Debug - Verify files
|
- name: Debug - Verify files
|
||||||
|
|||||||
Reference in New Issue
Block a user