Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/doitian/available-space


https://github.com/doitian/available-space

github-action

Last synced: about 1 month ago
JSON representation

Awesome Lists containing this project

README

        

# available-space

Get available disk space in megabytes.

Example:

```
steps:
- name: get avialable space
id: available-space
uses: doitian/available-space@v1
- run: echo available-space ${{ steps.available-space.outputs.available-space }}
shell: bash
```

Run a custom bash command when the available space is less than the threshold

```
steps:
- name: make clean when the available space is less than 40G
if: ${{ always() }}
id: available-space
uses: doitian/available-space@v1
with:
clean-threshold: 40000
clean: make clean
```