diff --git a/.github/workflows/gitea-tracker.yml b/.github/workflows/gitea-tracker.yml index 77ce4eb..0e1382d 100644 --- a/.github/workflows/gitea-tracker.yml +++ b/.github/workflows/gitea-tracker.yml @@ -34,10 +34,10 @@ jobs: NEW_VERSION="${NEW_VERSION#v}" echo "New Gitea version: $NEW_VERSION" - # Read current max-tested from the TRACKER:QUICK-REF-MAX marker line above it + # Read current max-tested: data row is directly BELOW the TRACKER:QUICK-REF-MAX marker MARKER_LINE=$(grep -n 'TRACKER:QUICK-REF-MAX' COMPATIBILITY.md | cut -d: -f1) # Extract the last **X.Y.Z** from the Quick Reference row (4th pipe column) - CURRENT=$(sed -n "$((MARKER_LINE - 1))p" COMPATIBILITY.md | awk -F'|' '{gsub(/\*| /, "", $4); print $4}') + CURRENT=$(sed -n "$((MARKER_LINE + 1))p" COMPATIBILITY.md | awk -F'|' '{gsub(/\*| /, "", $4); print $4}') echo "Current max tested: $CURRENT" echo "new_version=$NEW_VERSION" >> $GITHUB_OUTPUT @@ -55,9 +55,9 @@ jobs: if: steps.version.outputs.skip != 'true' run: | NEW="${{ steps.version.outputs.new_version }}" - # The Quick Reference row is the line directly above TRACKER:QUICK-REF-MAX + # The Quick Reference data row is the line directly BELOW TRACKER:QUICK-REF-MAX MARKER=$(grep -n 'TRACKER:QUICK-REF-MAX' COMPATIBILITY.md | cut -d: -f1) - TARGET=$((MARKER - 1)) + TARGET=$((MARKER + 1)) # Update column 4 (Max Tested) and column 5 (Status) in the pipe-separated row awk -i inplace -F'|' -v OFS='|' -v ver="${NEW}" ' NR == '$TARGET' { $4 = " **" ver "** "; $5 = " ⏳ Pending Verification " } @@ -105,7 +105,7 @@ jobs: with: branch: track/gitea-${{ steps.version.outputs.new_version }} commit-message: "docs: track Gitea ${{ steps.version.outputs.new_version }} — pending verification" - title: "⬆️ Track Gitea ${{ steps.version.outputs.new_version }} — ⏳ Pending Verification" + title: "Track Gitea ${{ steps.version.outputs.new_version }} — ⏳ Pending Verification" body: | Gitea **${{ steps.version.outputs.new_version }}** has been released.