From 3fa77f152483ed518543f4f3bd0296ff572648a8 Mon Sep 17 00:00:00 2001 From: chendelian <116870791@qq.com> Date: Sat, 6 Jun 2026 15:54:52 +0800 Subject: [PATCH] fix(ci): clone repository directly for media assets bundle --- .gitea/workflows/release.yml | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/.gitea/workflows/release.yml b/.gitea/workflows/release.yml index 0936725..789d1e8 100644 --- a/.gitea/workflows/release.yml +++ b/.gitea/workflows/release.yml @@ -15,29 +15,30 @@ jobs: GITEA_SHA: ${{ github.sha }} steps: - - name: Checkout - uses: https://git.jc2009.com/admin/actions-checkout@v4 - - - name: Pull Git LFS + - name: Clone repository run: | set -e - git lfs install - git lfs pull + rm -rf repo + git clone https://git.jc2009.com/client-commons/media-assets.git repo + cd repo + git rev-parse HEAD - echo "Music files after git lfs pull:" + echo "Music files after clone:" find music -type f -name "*.mp3" -exec ls -lh {} \; echo "MP3 file headers:" find music -type f -name "*.mp3" -exec sh -c 'echo "---- $1"; head -c 80 "$1"; echo' _ {} \; - name: Show workspace + working-directory: repo run: | pwd ls -la find . -maxdepth 2 -type f | sort | head -80 - name: Build stable zip + working-directory: repo run: | set -e @@ -71,6 +72,7 @@ jobs: ls -lh dist/media-assets.zip - name: Publish stable release asset + working-directory: repo env: GITEA_TOKEN: ${{ secrets.GITEA_TOKEN }} run: |