From f71ef8c3e4d56914f651f25b1a39fa5287a53a30 Mon Sep 17 00:00:00 2001 From: datadunia Date: Thu, 7 May 2026 06:23:02 +0700 Subject: [PATCH] fix: shallow --- .gitea/workflows/release.yaml | 42 +++++++---------------------------- 1 file changed, 8 insertions(+), 34 deletions(-) diff --git a/.gitea/workflows/release.yaml b/.gitea/workflows/release.yaml index 154fb4e..7731a90 100644 --- a/.gitea/workflows/release.yaml +++ b/.gitea/workflows/release.yaml @@ -26,9 +26,6 @@ jobs: export GIT_CONFIG_KEY_0="http.extraheader" export GIT_CONFIG_VALUE_0="$AUTH_HEADER" - # Matikan prompt agar tidak hang - export GIT_TERMINAL_PROMPT=0 - git clone --recurse-submodules ${{ gitea.server_url }}/${{ gitea.repository }}.git . # Debug @@ -64,33 +61,6 @@ jobs: name: wgrplane-linux-${{ matrix.goarch }} path: wgrplane-linux-${{ matrix.goarch }} - - name: Cleanup Git Config - if: always() # Pastikan tetap jalan meski job gagal - run: | - git config --global --unset-all url."https://token:${{ gitea.token }}@${{ gitea.server_url | replace("https://", "") }}/".insteadOf - - generate-latest-json: - needs: build - runs-on: ubuntu-latest - steps: - - name: Clone repository with submodules - run: | - # 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_KEY_0="http.extraheader" - export GIT_CONFIG_VALUE_0="$AUTH_HEADER" - - # Matikan prompt agar tidak hang - export GIT_TERMINAL_PROMPT=0 - - git clone --recurse-submodules ${{ gitea.server_url }}/${{ gitea.repository }}.git . - - # Debug - ls -la app/frontend - - name: Generate latest.json run: | VERSION="${{ gitea.ref_name }}" @@ -118,7 +88,11 @@ jobs: name: latest.json path: latest.json -# - name: Cleanup Git Config -# if: always() # Pastikan tetap jalan meski job gagal -# run: | -# git config --global --unset-all url."https://token:${{ gitea.token }}@${{ gitea.server_url | replace("https://", "") }}/".insteadOf + generate-latest-json: + needs: build + runs-on: ubuntu-latest + steps: + - name: Cleanup Git Config + if: always() # Pastikan tetap jalan meski job gagal + run: | + git config --global --unset-all url."https://token:${{ gitea.token }}@${{ gitea.server_url | replace("https://", "") }}/".insteadOf