This is a quick and dirty script to get some data about GitHub action job running time for ad hoc analysis. It uses the GitHub CLI rather than the real API library because it simplified auth and made experimentation super simple and easy.
I found the JSON data didn't give accurate results, though it's not clear how or why. The "unstructured" version of the code uses the non-JSON data and parses the strings to get the time data.