-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathaction.yaml
80 lines (74 loc) · 2.26 KB
/
action.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
name: "Free Disk Space - Ubuntu Runners"
description: "A Simple Action to Free Up Disk Space on GitHub Hosted Runners"
author: "Enderson Menezes <[email protected]>"
branding:
icon: "command"
color: "gray-dark"
inputs:
principal_dir:
description: "Principal Directory Mount Point"
required: false
default: "/"
remove_android:
description: "Remove Android Files"
required: false
default: "false"
remove_dotnet:
description: "Remove .NET Files"
required: false
default: "false"
remove_haskell:
description: "Remove Haskell Files"
required: false
default: "false"
remove_tool_cache:
description: "Remove Tool Cache"
required: false
default: "false"
remove_swap:
description: "Remove Swap"
required: false
default: "false"
remove_packages:
description: "Remove Packages (Eg. azure-cli google-cloud-cli) Read the documentation for more information"
required: false
default: "false"
remove_packages_one_command:
description: "Remove Packages (Eg. azure-cli google-cloud-cli) in one command"
required: false
default: "false"
remove_folders:
description: "Remove Folders (Eg. /usr/share/dotnet)"
required: false
default: "false"
testing:
description: "Testing (Use to develop locally)"
required: false
default: "false"
# outputs:
# saved-space:
# description: "The amount of space saved"
# value: ${{ steps.free-disk-space.outputs.saved-space }}
runs:
using: "composite"
steps:
- name: Set GitHub Path
run: echo "$GITHUB_ACTION_PATH" >> $GITHUB_PATH
shell: bash
env:
GITHUB_ACTION_PATH: ${{ github.action_path }}
- shell: bash
name: "Free Disk Space"
id: free-disk-space
run: main.sh
env:
PRINCIPAL_DIR: ${{ inputs.principal_dir }}
ANDROID_FILES: ${{ inputs.remove_android }}
DOTNET_FILES: ${{ inputs.remove_dotnet }}
HASKELL_FILES: ${{ inputs.remove_haskell }}
TOOL_CACHE: ${{ inputs.remove_tool_cache }}
SWAP_STORAGE: ${{ inputs.remove_swap }}
PACKAGES: ${{ inputs.remove_packages }}
REMOVE_ONE_COMMAND: ${{ inputs.remove_packages_one_command }}
REMOVE_FOLDERS: ${{ inputs.remove_folders }}
TESTING: ${{ inputs.testing }}