-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathaction.yml
43 lines (40 loc) · 1.09 KB
/
action.yml
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
name: "Run PiGrow"
author: ethanjli
description: Grows a Raspberry Pi SD card image, decompressing it if necessary.
branding:
icon: maximize-2
color: red
inputs:
image:
description: Path of the image to grow
required: true
destination:
description: Path to write the grown image to
required: false
mode:
description:
Grow the image by the specified size, or grow the image to at least the specified size.
Allowed values are `by`, `to`, and `none`.
required: false
default: none
size:
description:
Grow the image by the specified size, or to at least the specified size.
required: false
default: 0
outputs:
destination:
description: Path of the shrunken image
value: ${{ steps.run-pigrow.outputs.destination }}
runs:
using: composite
steps:
- id: run-pigrow
shell: bash
env:
INPUT_IMAGE: ${{ inputs.image }}
INPUT_DESTINATION: ${{ inputs.destination }}
INPUT_MODE: ${{ inputs.mode }}
INPUT_SIZE: ${{ inputs.size }}
run: |
${{ github.action_path }}/gha-wrapper-pigrow.sh