python-package-template icon indicating copy to clipboard operation
python-package-template copied to clipboard

Add the Release workflow logs as a release artifact?

Open jenstroeger opened this issue 2 years ago • 1 comments

@behnazh would it make sense to store the Actions log (all jobs) from the release.yaml workflow as part of the release artifacts? It looks like the Github API allows to download these logs, and considering that workflow logs can be deleted it would be useful to keep them?[^*]

I ask because I needed to debug a failed run and had to look through older logs too… 🤔

[^*]: We’d probably have to do that in a separate workflow that triggers when the release.yaml workflow has finished, to get the complete logs of all workflow jobs.

jenstroeger avatar Feb 26 '23 08:02 jenstroeger

@behnazh would it make sense to store the Actions log (all jobs) from the release.yaml workflow as part of the release artifacts? It looks like the Github API allows to download these logs, and considering that workflow logs can be deleted it would be useful to keep them?1

I ask because I needed to debug a failed run and had to look through older logs too… thinking

Footnotes

1. We’d probably have to do that in a separate workflow that triggers when the `release.yaml` workflow has finished, to get the complete logs of [all workflow jobs](https://docs.github.com/en/rest/actions/workflow-jobs?apiVersion=2022-11-28#list-jobs-for-a-workflow-run). [leftwards_arrow_with_hook](#user-content-fnref-*-4f8b0215c0ef05456c9666ba4fafd041)

Sure, that should be useful.

behnazh avatar Apr 02 '23 21:04 behnazh