fix: shallow
This commit is contained in:
@@ -18,20 +18,21 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- name: Clone repository with submodules
|
- name: Clone repository with submodules
|
||||||
run: |
|
run: |
|
||||||
# 1. Gunakan header tanpa batasan URL agar pasti terkirim ke submodules
|
# Gunakan Secret yang baru dibuat (MY_GITEA_TOKEN)
|
||||||
|
# Gitea menggunakan "token" atau "Bearer", coba salah satu yang paling cocok
|
||||||
|
AUTH_HEADER="Authorization: token ${{ secrets.MY_GITEA_TOKEN }}"
|
||||||
|
|
||||||
export GIT_CONFIG_COUNT=1
|
export GIT_CONFIG_COUNT=1
|
||||||
export GIT_CONFIG_KEY_0="http.extraheader"
|
export GIT_CONFIG_KEY_0="http.extraheader"
|
||||||
export GIT_CONFIG_VALUE_0="Authorization: Bearer ${{ gitea.token }}"
|
export GIT_CONFIG_VALUE_0="$AUTH_HEADER"
|
||||||
|
|
||||||
# 2. Matikan terminal prompt agar tidak tertahan menunggu input password
|
# Matikan prompt agar tidak hang
|
||||||
export GIT_TERMINAL_PROMPT=0
|
export GIT_TERMINAL_PROMPT=0
|
||||||
|
|
||||||
# 3. Jalankan clone
|
|
||||||
# Gunakan variabel langsung, Git akan menangani sisanya
|
|
||||||
git clone --recurse-submodules ${{ gitea.server_url }}/${{ gitea.repository }}.git .
|
git clone --recurse-submodules ${{ gitea.server_url }}/${{ gitea.repository }}.git .
|
||||||
|
|
||||||
# Debug untuk memastikan submodule 'app' terisi
|
# Debug
|
||||||
ls -la app/
|
ls -la app/frontend
|
||||||
|
|
||||||
- name: Setup Go
|
- name: Setup Go
|
||||||
uses: actions/setup-go@40f1582b2485089dde7abd97c1529aa768e1baff
|
uses: actions/setup-go@40f1582b2485089dde7abd97c1529aa768e1baff
|
||||||
@@ -74,20 +75,22 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- name: Clone repository with submodules
|
- name: Clone repository with submodules
|
||||||
run: |
|
run: |
|
||||||
# 1. Gunakan header tanpa batasan URL agar pasti terkirim ke submodules
|
# Gunakan Secret yang baru dibuat (MY_GITEA_TOKEN)
|
||||||
|
# Gitea menggunakan "token" atau "Bearer", coba salah satu yang paling cocok
|
||||||
|
AUTH_HEADER="Authorization: token ${{ secrets.MY_GITEA_TOKEN }}"
|
||||||
|
|
||||||
export GIT_CONFIG_COUNT=1
|
export GIT_CONFIG_COUNT=1
|
||||||
export GIT_CONFIG_KEY_0="http.extraheader"
|
export GIT_CONFIG_KEY_0="http.extraheader"
|
||||||
export GIT_CONFIG_VALUE_0="Authorization: Bearer ${{ gitea.token }}"
|
export GIT_CONFIG_VALUE_0="$AUTH_HEADER"
|
||||||
|
|
||||||
# 2. Matikan terminal prompt agar tidak tertahan menunggu input password
|
# Matikan prompt agar tidak hang
|
||||||
export GIT_TERMINAL_PROMPT=0
|
export GIT_TERMINAL_PROMPT=0
|
||||||
|
|
||||||
# 3. Jalankan clone
|
|
||||||
# Gunakan variabel langsung, Git akan menangani sisanya
|
|
||||||
git clone --recurse-submodules ${{ gitea.server_url }}/${{ gitea.repository }}.git .
|
git clone --recurse-submodules ${{ gitea.server_url }}/${{ gitea.repository }}.git .
|
||||||
|
|
||||||
# Debug untuk memastikan submodule 'app' terisi
|
# Debug
|
||||||
ls -la app/
|
ls -la app/frontend
|
||||||
|
|
||||||
- name: Generate latest.json
|
- name: Generate latest.json
|
||||||
run: |
|
run: |
|
||||||
VERSION="${{ gitea.ref_name }}"
|
VERSION="${{ gitea.ref_name }}"
|
||||||
|
|||||||
Reference in New Issue
Block a user