- add type hints to functions for better code clarity
- fix version extraction logic to correctly access version from dictionary
- improve error handling in workflow with better debugging information
- update workflow to use pull request head ref for accurate file detection
- add fallback to 'latest' version when extraction fails
- enhance logging with old and new version display
- rename script reference from .sh to .py in workflow step
- modify checkout action to use head ref instead of default