Skip to content

Cleanup old installations after update #39

Description

@ffried

We've run into a problem where disk space ran out on a self-hosted runner because this action (or more accurately aws-cli) does not clean up old installations after an update.
/usr/local/aws-cli/v2 is filled with hundreds of folders of old versions.

I've currently added the following workaround:

sudo find -L '/usr/local/aws-cli/v2' -mindepth 1 -maxdepth 1 \! -xtype l \! -samefile '/usr/local/aws-cli/v2/current' -exec rm -rf '{}' \+

Given that this action knows more about the (here hardcoded) paths, it would be great if such a step could be added to this action (possibly controlled via an input).

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions