Help
cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Copilot Lvl 3
Message 1 of 3

Getting historic workflows of Github Actions

Solved! Go to Solution.

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.

2 Replies
Solution
Community Manager
Message 2 of 3

Re: Getting historic workflows of Github Actions

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!

Thanks for being here, sharing, and keeping our community awesome!
Best,
AndreaG

Mark helpful posts with Accept as Solution to help other users locate important info. Don't forget to give Kudos for great content!

Copilot Lvl 3
Message 3 of 3

Re: Getting historic workflows of Github Actions

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.