Getting historic workflows of Github Actions #25037
-
Hopefully I’m not missing something obvious, but is there a way to scroll back or call Github Action’s API to get the workflow and logs of older runs? It seems the webpage lets you look back around 12 previous workflows. If this is not a capability yet, it would be a really helpful addition. |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments
-
Hey @thedarkwriter, Thanks for being here! In the UI via the Actions Tab, it’s possible to look at previously executed workflows. I can see how this can be valuable and will add it to the feedback for the team. In the API, there’s no endpoint for fetching workflows. However, because GitHub Actions creates a check suite per workflow and a check run per executed action in said workflow, someone could use the Checks API to get that information though it’s not as straightforward because it requires the knowledge of a specific SHA: https://developer.github.com/v3/checks/ I hope this helps! |
Beta Was this translation helpful? Give feedback.
-
Hi Andrea. Thanks for the reply. I see the previous executed runs, there just aren’t very many available and no way to scroll pages back to look at previous pages of runs. For folks wanting to use this for CICD (like I’d like to) it would be a very helpful feature. |
Beta Was this translation helpful? Give feedback.
-
The Actions API beta shipped today https://developer.github.com/v3/actions/ |
Beta Was this translation helpful? Give feedback.
Hey @thedarkwriter,
Thanks for being here! In the UI via the Actions Tab, it’s possible to look at previously executed workflows. I can see how this can be valuable and will add it to the feedback for the team.
In the API, there’s no endpoint for fetching workflows. However, because GitHub Actions creates a check suite per workflow and a check run per executed action in said workflow, someone could use the Checks API to get that information though it’s not as straightforward because it requires the knowledge of a specific SHA:
https://developer.github.com/v3/checks/
I hope this helps!