delete the latest tag if changes are to be found
All checks were successful
Update Community Skins README / Full CI/CD Pipeline (push) Successful in 5s

This commit is contained in:
2025-06-07 12:48:18 +02:00
parent 77fc33242b
commit b749c97c78

View File

@@ -17,7 +17,7 @@ jobs:
steps:
- name: Clone skins-template
run: |
echo "Clone skins-template"
echo "Cloning skins-template..."
git clone --quiet "${{ env.TEMPLATE_REPO_URL }}" --depth 1 template-repo
cd template-repo
git checkout --quiet HEAD -- "${{ env.TEMPLATE_REL_PATH }}"
@@ -98,11 +98,11 @@ jobs:
if ! git diff --cached --quiet; then
latest_tag=$(git describe --tags --abbrev=0 2>/dev/null || true)
if [ -n "$latest_tag" ]; then
git push origin --delete tag "$latest_tag" || true
git tag -d "$latest_tag" || true
git push origin --delete tag "$latest_tag" >/dev/null 2>&1 || true
git tag -d "$latest_tag" >/dev/null 2>&1 || true
fi
git commit -m "Update CI" --quiet
git push origin HEAD:main --tags --force
git push origin HEAD:main --tags --force >/dev/null 2>&1
echo " → Updated and pushed $owner/$repo"
else
echo " → No changes detected for $owner/$repo"
@@ -116,4 +116,3 @@ jobs:
done < "$valid_repos_file"
rm "$valid_repos_file"
echo "[Sync CI Complete]"