generated from osc/skins-template
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
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:
@@ -52,6 +52,7 @@ jobs:
|
||||
outputs:
|
||||
has_changes: ${{ steps.set.outputs.has_changes }}
|
||||
soft_run: ${{ github.event.inputs.soft_run || 'false' }}
|
||||
user_repository: ${{ steps.repo-path.outputs.user_repository }}
|
||||
steps:
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@v4
|
||||
@@ -124,12 +125,11 @@ jobs:
|
||||
fi
|
||||
|
||||
- name: Extract Repository Path
|
||||
id: repo-path
|
||||
shell: bash
|
||||
run: |
|
||||
repo="${{ github.workspace }}"
|
||||
repo="${repo#/workspace/}"
|
||||
repo="${repo%/}"
|
||||
echo "USER_REPOSITORY=$repo" >> "$GITHUB_ENV"
|
||||
repo="${{ github.repository }}"
|
||||
echo "user_repository=$repo" >> "$GITHUB_OUTPUT"
|
||||
|
||||
- name: Set outputs
|
||||
id: set
|
||||
@@ -754,7 +754,7 @@ jobs:
|
||||
raw_path="$(printf "%s/%s" "$skin" "$skin_header" | sed 's/^ *//;s/ *$//')"
|
||||
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"
|
||||
|
||||
desc=$(get_desc "$skin")
|
||||
@@ -778,14 +778,14 @@ jobs:
|
||||
echo "| ------- | ---- |" >> "$README_PATH"
|
||||
|
||||
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)
|
||||
if [ -n "$old_tags" ]; then
|
||||
echo "$old_tags" | while read -r tag; do
|
||||
tag_date=$(git log -1 --format=%ci "$tag")
|
||||
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
|
||||
fi
|
||||
|
||||
@@ -856,11 +856,11 @@ jobs:
|
||||
|
||||
raw_path="${skin}/${skin_header}"
|
||||
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"
|
||||
|
||||
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=""
|
||||
if [ -f "$ini_file" ]; then
|
||||
@@ -893,7 +893,7 @@ jobs:
|
||||
echo "| ------- | ---- |"
|
||||
|
||||
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)
|
||||
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
|
||||
tag_date=$(git log -1 --format=%ci "$tag")
|
||||
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
|
||||
done
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user