From 5d12f3ee31fca8d25815839e8959aaeddca84033 Mon Sep 17 00:00:00 2001 From: Arlind Date: Mon, 9 Jun 2025 09:49:23 +0200 Subject: [PATCH] Update .gitea/workflows/ci.yml --- .gitea/workflows/ci.yml | 73 ++++++++++++++++++++++------------------- 1 file changed, 40 insertions(+), 33 deletions(-) diff --git a/.gitea/workflows/ci.yml b/.gitea/workflows/ci.yml index b512197..7b3ebb2 100644 --- a/.gitea/workflows/ci.yml +++ b/.gitea/workflows/ci.yml @@ -54,39 +54,6 @@ jobs: with: token: ${{ secrets.TOKEN }} - - name: Git LFS Pull - shell: bash - run: | - echo "Pulling Git LFS files..." - git lfs pull - echo "LFS files pulled." - - - name: Extract Repository path - shell: bash - run: | - echo "Extracting repository path..." - USER_REPOSITORY="${{ github.workspace }}" - USER_REPOSITORY="${USER_REPOSITORY#/workspace/}" - USER_REPOSITORY="${USER_REPOSITORY%/}" - echo "Repository path extracted: $USER_REPOSITORY" - echo "USER_REPOSITORY=$USER_REPOSITORY" >> $GITHUB_ENV - - - name: Set XDG_RUNTIME_DIR - shell: bash - run: | - echo "Setting XDG_RUNTIME_DIR..." - mkdir -p /tmp/xdg_runtime_dir - chmod 0700 /tmp/xdg_runtime_dir - echo "XDG_RUNTIME_DIR=/tmp/xdg_runtime_dir" >> "$GITHUB_ENV" - echo "XDG_RUNTIME_DIR set." - - - name: Create directories for assets - shell: bash - run: | - echo "Creating directories for assets..." - mkdir -p "$REPO_SCREENSHOT_DIR" "$REPO_MOD_ICONS_DIR" "$REPO_RANKING_PANEL_DIR" "$OSK_PATH" - echo "Directories created." - - name: Detect Changed Skin Directories shell: bash run: | @@ -149,6 +116,46 @@ jobs: echo "" echo "[Detect Changed Skin Directories Complete — ${#uniq_skins[@]} skins processed]" + - name: Pull Git LFS objects for src and changed skins + shell: bash + run: | + includes="src/**" + + if [[ -n "$CHANGED_SKINS_FILE" ]]; then + skin_includes=$(sed -e 's#^#Skins/#' -e 's#$#/**#' "$CHANGED_SKINS_FILE" \ + | paste -sd "," -) + includes="$includes,$skin_includes" + fi + + echo "→ Pulling LFS objects for patterns: $includes" + git lfs pull --include="$includes" + + - name: Extract Repository path + shell: bash + run: | + echo "Extracting repository path..." + USER_REPOSITORY="${{ github.workspace }}" + USER_REPOSITORY="${USER_REPOSITORY#/workspace/}" + USER_REPOSITORY="${USER_REPOSITORY%/}" + echo "Repository path extracted: $USER_REPOSITORY" + echo "USER_REPOSITORY=$USER_REPOSITORY" >> $GITHUB_ENV + + - name: Set XDG_RUNTIME_DIR + shell: bash + run: | + echo "Setting XDG_RUNTIME_DIR..." + mkdir -p /tmp/xdg_runtime_dir + chmod 0700 /tmp/xdg_runtime_dir + echo "XDG_RUNTIME_DIR=/tmp/xdg_runtime_dir" >> "$GITHUB_ENV" + echo "XDG_RUNTIME_DIR set." + + - name: Create directories for assets + shell: bash + run: | + echo "Creating directories for assets..." + mkdir -p "$REPO_SCREENSHOT_DIR" "$REPO_MOD_ICONS_DIR" "$REPO_RANKING_PANEL_DIR" "$OSK_PATH" + echo "Directories created." + - name: Create New Tag shell: bash run: |