From b5d13a753294c8c139d41f0e504f7336a04351cc Mon Sep 17 00:00:00 2001 From: Arlind-dev Date: Wed, 30 Jul 2025 15:54:48 +0200 Subject: [PATCH] test new tags --- .gitea/workflows/ci.yml | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/.gitea/workflows/ci.yml b/.gitea/workflows/ci.yml index ff2927b..a3eed67 100644 --- a/.gitea/workflows/ci.yml +++ b/.gitea/workflows/ci.yml @@ -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/$${{ 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" 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 "| [\$${{ 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 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 "| [\$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 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/$${{ 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" 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="" if [ -f "$ini_file" ]; then @@ -893,9 +893,9 @@ jobs: echo "| ------- | ---- |" 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 echo "$old_tags" | while read -r tag; do raw_osk_path="export/${skin}/${skin_header}.osk" @@ -1075,8 +1075,8 @@ jobs: run: | if [ "${GITHUB_REF}" = "refs/heads/main" ]; then git push origin HEAD:main || echo "No changes to push" - git tag "$${{ steps.tag.outputs.new_tag }}" - git push origin "$${{ steps.tag.outputs.new_tag }}" + git tag "${{ needs.calculate_git_tag.outputs.new_tag }}" + git push origin "${{ needs.calculate_git_tag.outputs.new_tag }}" else git push origin HEAD:"${GITHUB_REF_NAME}" || echo "No changes to push" fi