Update .gitea/workflows/ci.yml

This commit is contained in:
Arlind
2025-06-09 09:49:23 +02:00
parent f079c3d6ab
commit 5d12f3ee31

View File

@@ -54,39 +54,6 @@ jobs:
with: with:
token: ${{ secrets.TOKEN }} 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 - name: Detect Changed Skin Directories
shell: bash shell: bash
run: | run: |
@@ -149,6 +116,46 @@ jobs:
echo "" echo ""
echo "[Detect Changed Skin Directories Complete — ${#uniq_skins[@]} skins processed]" 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 - name: Create New Tag
shell: bash shell: bash
run: | run: |