LP1991444: Cleanup Build Docs Artifacts in GitHub Actions
authorJason Stephenson <jason@sigio.com>
Sat, 1 Oct 2022 13:20:35 +0000 (09:20 -0400)
committerJane Sandberg <sandbergja@gmail.com>
Sat, 1 Oct 2022 13:33:09 +0000 (06:33 -0700)
The Build Docs GitHub action leaves the built docs behind as
artifacts.  These artifacts currently use about 58MB apiece.  This can
quickly consume all of the available storage spacce (500MB) for
free-tier GitHub accounts.

This commit adds a retention-days setting of 2 so that build docs
artifacts should be removed after two days.

See also:

https://docs.github.com/en/actions/using-workflows/storing-workflow-data-as-artifacts#configuring-a-custom-artifact-retention-period

Signed-off-by: Jason Stephenson <jason@sigio.com>
Signed-off-by: Jane Sandberg <sandbergja@gmail.com>

.github/workflows/docs.yml

index 29cc5f8..9a1b66c 100644 (file)
@@ -21,3 +21,4 @@ jobs:
         with:
           name: built-docs
           path: docs/output
+          retention-days: 2