This contains a few follow-ups to #33744:
- Rewrite the actions Bash snippet to Python. I’ve confirmed it still works in https://github.com/maflcko/bitcoin-core-with-ci/actions/runs/19067932430 (scroll down).
- Add a lint-build retry to avoid issues such as #33640 for the lint task as well.
- Finally, run the
debug_pull_request_number_strannotation on all checks, to ensure they are present even when GitHub deletes annotations on a re-run. For example, the initial attempt https://github.com/bitcoin/bitcoin/actions/runs/19041534107/attempts/1?pr=33772 has the annotations, and the lint re-run has them removed: https://github.com/bitcoin/bitcoin/actions/runs/19041534107?pr=33772