Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/doitian/available-space
https://github.com/doitian/available-space
github-action
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/doitian/available-space
- Owner: doitian
- License: mit
- Created: 2021-06-25T06:45:14.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2021-06-25T09:36:11.000Z (over 3 years ago)
- Last Synced: 2024-04-14T18:13:04.801Z (7 months ago)
- Topics: github-action
- Homepage:
- Size: 5.86 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: COPYING
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
```