Add skills for managing PyPI project update dates and syncing README.md

This commit is contained in:
Wilson Freitas
2026-03-22 09:43:18 -03:00
parent 9405b48526
commit fc206ea4f3
6 changed files with 566 additions and 0 deletions
@@ -0,0 +1,27 @@
#!/bin/bash
# Wrapper script to check PyPI dates and update README.md
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
PROJECT_ROOT="$(cd "$SCRIPT_DIR/../../../../.." && pwd)"
cd "$PROJECT_ROOT" || exit 1
echo "🚀 Starting PyPI date update check..."
python3 "$SCRIPT_DIR/check_pypi_dates.py"
exit_code=$?
if [ $exit_code -eq 0 ]; then
# Check if there are any changes to commit
if git diff --quiet README.md; then
echo "✓ No changes needed"
else
echo ""
echo "📝 Changes detected, committing..."
git add README.md
git commit -m "Update PyPI project last updated dates"
git push origin master
echo "✅ Changes pushed to remote"
fi
fi
exit $exit_code