test
All checks were successful
Generate Skin previews, OSK files and per skin documentation / Detect Changed Skins (push) Successful in 4s
Generate Skin previews, OSK files and per skin documentation / Calculate Git Tag (push) Has been skipped
Generate Skin previews, OSK files and per skin documentation / Prepare Assets (push) Has been skipped
Generate Skin previews, OSK files and per skin documentation / Generate Videos and Screenshots (push) Has been skipped
Generate Skin previews, OSK files and per skin documentation / Generate Mod Icons (WEBP) (push) Has been skipped
Generate Skin previews, OSK files and per skin documentation / Create OSK Files (push) Has been skipped
Generate Skin previews, OSK files and per skin documentation / Generate README (push) Has been skipped
Generate Skin previews, OSK files and per skin documentation / Rename Assets Based on skin.ini (push) Has been skipped
Generate Skin previews, OSK files and per skin documentation / Generate Per-Skin Docs (push) Has been skipped
Generate Skin previews, OSK files and per skin documentation / Convert PNGs to WEBPs (push) Has been skipped
Generate Skin previews, OSK files and per skin documentation / Git Commit and Push (push) Has been skipped

This commit is contained in:
2025-07-30 16:11:17 +02:00
parent b38d9b0576
commit 278ee50ccb

View File

@@ -52,6 +52,7 @@ jobs:
outputs: outputs:
has_changes: ${{ steps.set.outputs.has_changes }} has_changes: ${{ steps.set.outputs.has_changes }}
soft_run: ${{ github.event.inputs.soft_run || 'false' }} soft_run: ${{ github.event.inputs.soft_run || 'false' }}
user_repository: ${{ steps.repo-path.outputs.user_repository }}
steps: steps:
- name: Checkout repository - name: Checkout repository
uses: actions/checkout@v4 uses: actions/checkout@v4
@@ -124,12 +125,11 @@ jobs:
fi fi
- name: Extract Repository Path - name: Extract Repository Path
id: repo-path
shell: bash shell: bash
run: | run: |
repo="${{ github.workspace }}" repo="${{ github.repository }}"
repo="${repo#/workspace/}" echo "user_repository=$repo" >> "$GITHUB_OUTPUT"
repo="${repo%/}"
echo "USER_REPOSITORY=$repo" >> "$GITHUB_ENV"
- name: Set outputs - name: Set outputs
id: set id: set
@@ -754,7 +754,7 @@ jobs:
raw_path="$(printf "%s/%s" "$skin" "$skin_header" | sed 's/^ *//;s/ *$//')" raw_path="$(printf "%s/%s" "$skin" "$skin_header" | sed 's/^ *//;s/ *$//')"
base_path=$(url_encode_path "$raw_path") base_path=$(url_encode_path "$raw_path")
echo "## [$skin_header]($REGISTRY_URL/$USER_REPOSITORY/media/tag/${{ needs.calculate_git_tag.outputs.new_tag }}/export/${base_path}.osk)" >> "$README_PATH" echo "## [$skin_header]($REGISTRY_URL/${{ needs.detect_changed_skins.outputs.user_repository }}/media/tag/${{ needs.calculate_git_tag.outputs.new_tag }}/export/${base_path}.osk)" >> "$README_PATH"
echo "" >> "$README_PATH" echo "" >> "$README_PATH"
desc=$(get_desc "$skin") desc=$(get_desc "$skin")
@@ -778,14 +778,14 @@ jobs:
echo "| ------- | ---- |" >> "$README_PATH" echo "| ------- | ---- |" >> "$README_PATH"
current_commit_date=$(TZ="Europe/Zurich" date -d "$(git log -1 --format=%cI)" "+%d.%m.%Y %H:%M:%S") current_commit_date=$(TZ="Europe/Zurich" date -d "$(git log -1 --format=%cI)" "+%d.%m.%Y %H:%M:%S")
echo "| [${{ needs.calculate_git_tag.outputs.new_tag }} (Current)]($REGISTRY_URL/$USER_REPOSITORY/src/tag/${{ needs.calculate_git_tag.outputs.new_tag }}/README.md) | $current_commit_date |" >> "$README_PATH" echo "| [${{ needs.calculate_git_tag.outputs.new_tag }} (Current)]($REGISTRY_URL/${{ needs.detect_changed_skins.outputs.user_repository }}/src/tag/${{ needs.calculate_git_tag.outputs.new_tag }}/README.md) | $current_commit_date |" >> "$README_PATH"
old_tags=$(git tag --sort=-v:refname | grep -v "^${{ needs.calculate_git_tag.outputs.new_tag }}$" | grep -E '^v[0-9]+\.[0-9]+\.[0-9]+$' || true) old_tags=$(git tag --sort=-v:refname | grep -v "^${{ needs.calculate_git_tag.outputs.new_tag }}$" | grep -E '^v[0-9]+\.[0-9]+\.[0-9]+$' || true)
if [ -n "$old_tags" ]; then if [ -n "$old_tags" ]; then
echo "$old_tags" | while read -r tag; do echo "$old_tags" | while read -r tag; do
tag_date=$(git log -1 --format=%ci "$tag") tag_date=$(git log -1 --format=%ci "$tag")
formatted_date=$(TZ="Europe/Zurich" date -d "$tag_date" "+%d.%m.%Y %H:%M:%S") formatted_date=$(TZ="Europe/Zurich" date -d "$tag_date" "+%d.%m.%Y %H:%M:%S")
echo "| [${{ needs.calculate_git_tag.outputs.new_tag }}]($REGISTRY_URL/$USER_REPOSITORY/src/tag/$tag/README.md) | $formatted_date |" >> "$README_PATH" echo "| [${{ needs.calculate_git_tag.outputs.new_tag }}]($REGISTRY_URL/${{ needs.detect_changed_skins.outputs.user_repository }}/src/tag/$tag/README.md) | $formatted_date |" >> "$README_PATH"
done done
fi fi
@@ -856,11 +856,11 @@ jobs:
raw_path="${skin}/${skin_header}" raw_path="${skin}/${skin_header}"
base_path=$(url_encode_path "$raw_path") base_path=$(url_encode_path "$raw_path")
osk_url="$REGISTRY_URL/$USER_REPOSITORY/media/tag/${{ needs.calculate_git_tag.outputs.new_tag }}/export/${base_path}.osk" osk_url="$REGISTRY_URL/${{ needs.detect_changed_skins.outputs.user_repository }}/media/tag/${{ needs.calculate_git_tag.outputs.new_tag }}/export/${base_path}.osk"
md_file_path="${DOC_DIR}/${raw_path}.md" md_file_path="${DOC_DIR}/${raw_path}.md"
mkdir -p "$(dirname "$md_file_path")" mkdir -p "$(dirname "$md_file_path")"
video_url="$REGISTRY_URL/$USER_REPOSITORY/raw/tag/${{ needs.calculate_git_tag.outputs.new_tag }}/media/gameplay/${base_path}.mp4" video_url="$REGISTRY_URL/${{ needs.detect_changed_skins.outputs.user_repository }}/raw/tag/${{ needs.calculate_git_tag.outputs.new_tag }}/media/gameplay/${base_path}.mp4"
author="" author=""
if [ -f "$ini_file" ]; then if [ -f "$ini_file" ]; then
@@ -893,7 +893,7 @@ jobs:
echo "| ------- | ---- |" echo "| ------- | ---- |"
current_commit_date=$(TZ="Europe/Zurich" date -d "$(git log -1 --format=%cI)" "+%d.%m.%Y %H:%M:%S") current_commit_date=$(TZ="Europe/Zurich" date -d "$(git log -1 --format=%cI)" "+%d.%m.%Y %H:%M:%S")
echo "| [\${{ needs.calculate_git_tag.outputs.new_tag }} (Current)\]($REGISTRY_URL/$USER_REPOSITORY/src/tag/${{ needs.calculate_git_tag.outputs.new_tag }}/docs/${base_path}.md) | $current_commit_date |" echo "| [\${{ needs.calculate_git_tag.outputs.new_tag }} (Current)\]($REGISTRY_URL/${{ needs.detect_changed_skins.outputs.user_repository }}/src/tag/${{ needs.calculate_git_tag.outputs.new_tag }}/docs/${base_path}.md) | $current_commit_date |"
old_tags=$(git tag --sort=-v:refname | grep -v "^${{ needs.calculate_git_tag.outputs.new_tag }}$" | grep -E '^v[0-9]+\.[0-9]+\.[0-9]+$' || true) old_tags=$(git tag --sort=-v:refname | grep -v "^${{ needs.calculate_git_tag.outputs.new_tag }}$" | grep -E '^v[0-9]+\.[0-9]+\.[0-9]+$' || true)
if [ -n "$old_tags" ]; then if [ -n "$old_tags" ]; then
@@ -902,7 +902,7 @@ jobs:
if git ls-tree -r --name-only "$tag" | grep -Fx -- "$raw_osk_path" >/dev/null; then if git ls-tree -r --name-only "$tag" | grep -Fx -- "$raw_osk_path" >/dev/null; then
tag_date=$(git log -1 --format=%ci "$tag") tag_date=$(git log -1 --format=%ci "$tag")
formatted_date=$(TZ="Europe/Zurich" date -d "$tag_date" "+%d.%m.%Y %H:%M:%S") formatted_date=$(TZ="Europe/Zurich" date -d "$tag_date" "+%d.%m.%Y %H:%M:%S")
echo "| [\$tag\]($REGISTRY_URL/$USER_REPOSITORY/src/tag/$tag/docs/${base_path}.md) | $formatted_date |" echo "| [\$tag\]($REGISTRY_URL/${{ needs.detect_changed_skins.outputs.user_repository }}/src/tag/$tag/docs/${base_path}.md) | $formatted_date |"
fi fi
done done
fi fi