generated from osc/skins-template
Update CI from skins-template
Some checks failed
Generate Skin previews, OSK files and per skin documentation / Full CI/CD Pipeline (push) Failing after 2s
Some checks failed
Generate Skin previews, OSK files and per skin documentation / Full CI/CD Pipeline (push) Failing after 2s
This commit is contained in:
@@ -853,6 +853,28 @@ jobs:
|
|||||||
|
|
||||||
echo "## Mod Icons"
|
echo "## Mod Icons"
|
||||||
echo ""
|
echo ""
|
||||||
|
|
||||||
|
echo ""
|
||||||
|
echo "## Build History"
|
||||||
|
echo ""
|
||||||
|
echo "| Version | Date |"
|
||||||
|
echo "| ------- | ---- |"
|
||||||
|
|
||||||
|
current_commit_date=$(TZ="Europe/Zurich" date -d "$(git log -1 --format=%cI)" "+%d.%m.%Y %H:%M:%S")
|
||||||
|
echo "| [\`$new_tag (Current)\`]($REGISTRY_URL/$USER_REPOSITORY/src/tag/$new_tag/docs/${base_path}.md) | $current_commit_date |"
|
||||||
|
|
||||||
|
old_tags=$(git tag --sort=-v:refname | grep -v "^$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
|
||||||
|
raw_osk_path="export/${skin}/${skin_header}.osk"
|
||||||
|
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 |"
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
fi
|
||||||
|
|
||||||
} > "$md_file_path"
|
} > "$md_file_path"
|
||||||
|
|
||||||
echo " → Wrote $md_file_path"
|
echo " → Wrote $md_file_path"
|
||||||
|
|||||||
Reference in New Issue
Block a user