generated from osc/skins-template
test new tags
All checks were successful
Generate Skin previews, OSK files and per skin documentation / Detect Changed Skins (push) Successful in 3s
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 / Generate Per-Skin Docs (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 / 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 3s
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 / Generate Per-Skin Docs (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 / 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:
@@ -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/$${{ steps.tag.outputs.new_tag }}/export/${base_path}.osk)" >> "$README_PATH"
|
echo "## [$skin_header]($REGISTRY_URL/$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 "| [\$${{ steps.tag.outputs.new_tag }} (Current)\]($REGISTRY_URL/$USER_REPOSITORY/src/tag/$${{ steps.tag.outputs.new_tag }}/README.md) | $current_commit_date |" >> "$README_PATH"
|
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"
|
||||||
|
|
||||||
old_tags=$(git tag --sort=-v:refname | grep -v "^$${{ steps.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 "| [\$tag\]($REGISTRY_URL/$USER_REPOSITORY/src/tag/$tag/README.md) | $formatted_date |" >> "$README_PATH"
|
echo "| [${{ needs.calculate_git_tag.outputs.new_tag }}]($REGISTRY_URL/$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/$${{ steps.tag.outputs.new_tag }}/export/${base_path}.osk"
|
osk_url="$REGISTRY_URL/$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/$${{ steps.tag.outputs.new_tag }}/media/gameplay/${base_path}.mp4"
|
video_url="$REGISTRY_URL/$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,9 +893,9 @@ 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 "| [\$${{ steps.tag.outputs.new_tag }} (Current)\]($REGISTRY_URL/$USER_REPOSITORY/src/tag/$${{ steps.tag.outputs.new_tag }}/docs/${base_path}.md) | $current_commit_date |"
|
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 |"
|
||||||
|
|
||||||
old_tags=$(git tag --sort=-v:refname | grep -v "^$${{ steps.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
|
||||||
raw_osk_path="export/${skin}/${skin_header}.osk"
|
raw_osk_path="export/${skin}/${skin_header}.osk"
|
||||||
@@ -1075,8 +1075,8 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
if [ "${GITHUB_REF}" = "refs/heads/main" ]; then
|
if [ "${GITHUB_REF}" = "refs/heads/main" ]; then
|
||||||
git push origin HEAD:main || echo "No changes to push"
|
git push origin HEAD:main || echo "No changes to push"
|
||||||
git tag "$${{ steps.tag.outputs.new_tag }}"
|
git tag "${{ needs.calculate_git_tag.outputs.new_tag }}"
|
||||||
git push origin "$${{ steps.tag.outputs.new_tag }}"
|
git push origin "${{ needs.calculate_git_tag.outputs.new_tag }}"
|
||||||
else
|
else
|
||||||
git push origin HEAD:"${GITHUB_REF_NAME}" || echo "No changes to push"
|
git push origin HEAD:"${GITHUB_REF_NAME}" || echo "No changes to push"
|
||||||
fi
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user