samueldr/More Space Action

Aggressively makes space in a GitHub runner

View on GitHub

Trust Signals

Scorecard Score
not yet scored
Maintenance Recency
Stale
License
None
namedescriptionrequireddefault
additional-apt-patternsAdditional patterns to autopurge with apt. > [!WARNING] > This single string will be split according to bash string splitting semantics. no""
enable-remove-default-apt-patternsEnable the built-in list of patterns to autopurge. This effectively disables autopurging if disabled, when no additional patterns are provided. notrue
additional-space-hogsAdditional paths to remove. > [!WARNING] > This single string will be split according to bash string splitting semantics. no""
enable-remove-default-space-hogsEnable the built-in list of space hogs to remove. notrue
enable-remove-non-package-usrEnable removing some content from `/usr/` that is not managed by the package manager. (This will not remove `/usr/local` content.) notrue
enable-remove-default-home-folder-hogsEnable the built-in list of home folder hogs to remove. notrue
enable-remove-home-folder-hogsEnable removing some large content from the different `/home/` folders. notrue
enable-remove-usr-localEnable removing `/usr/local` entirely. It is not managed by the package manager. notrue
enable-docker-prune-allEnable pruning all docker images from system. Some older images shipped with around 2.5GiB of wasted space from docker images. notrue
enable-second-drive-harmonizationWhen enabled, if a second drive is attached to the runner (it likely is with GitHub's runners), the attached drive will be configured to work similarly on all systems: - The secondary disk (if needed) will be formatted and mounted to `/mnt` - Swap file will be put in the preferred location (see: `swapfile-location`) This option, in itself, saves no space, but ensures further steps can run under an expected disk layout. notrue
enable-swapfileWhen harmonizing the drives, the existing swapfile will be removed. When this option is enabled, a swapfile is created back in the system. This option can be used to effectively disable the swapfile entirely. A swapfile is used by default, just like GitHub's runners do by default. true
swapfile-locationDetermine where the swapfile should be created. GitHub's runners defaults differ: - AArch64: /swapfile - x86_64: /mnt/swapfile no/swapfile
swapfile-sizeDetermine the swapfile size. GitHub's runners defaults differ: - AArch64: 3GB - x86_64: 4GB The value is passed to fallocate. no4GiB
enable-lvm-spanWhen enabled, files will be created at the listed locations, The mountpoint will be left untouched, meaning that chmod or chown is likely to be needed to make use of it in your actions. > [!NOTE] > This option makes no sense to enable without `enable-second-drive-harmonization` being enabled. > [!WARNING] > If setting-up the lvm span fails, at any point, the action will fail. > > Enabling this option means it is necessary for the span to be created. nofalse
lvm-span-mountpointLoction the lvm span will be mounted as no/misc
lvm-span-mountpointsMountpoints under which a file for the LVM span will be created. no/ /mnt
lvm-span-default-free-spaceThis numeric option describes the amount of bytes that will be left free by default on drives with an LVM span. The default value leaves 100MiB free on any given disk. See also: `lvm-span-free-space` no104857600
lvm-span-free-spaceJSON object listing amount of free space to be left on specific mountpoints. The default leaves 1GiB free on the rootfs. See also: `lvm-span-default-free-space` no{ "/": "1073741824" }
verboseWhen enabled, this action may be overly verbose. nofalse
dry-runWhen enabled, this action will stub out all system altering commands. nofalse

no outputs