-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathaction.yml
37 lines (37 loc) · 1.46 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
name: "bloaty-action"
description: "Run Bloaty McBloatface: a size profiler for binaries."
author: "Carlos Pereira Atencio"
branding:
color: "orange"
icon: "wind"
inputs:
bloaty-args:
description: "Arguments to pass to Bloaty McBloatface"
required: true
output-to-summary:
description: "Add the Bloaty output to the GitHub Actions Job Summary"
required: false
default: false
summary-title:
description: "Title on top of the Bloaty output in the GitHub Actions Job Summary"
required: false
default: "bloaty output"
action-verbose:
description: "Print to log additional info from the action process (not bloaty itself)"
required: false
default: false
outputs:
bloaty-output:
description: "The output from Bloaty McBloatface"
bloaty-output-encoded:
description: "bloaty output in a string with escaped characters (so you'll get things like \\n)"
runs:
using: docker
# For testing we can build the Docker file by uncommenting switching this line
#image: docker-action/Dockerfile
image: docker://ghcr.io/carlosperate/bloaty-action:latest
args:
# Old format used before the Python script was added
# Echo in the format required to set action output | send to envvar & stdout | remove the prefix | echo with e flag to print with new lines
#- echo bloaty-output=$(bloaty ${{ inputs.bloaty-args }}) | tee -a $GITHUB_OUTPUT | sed "s/^bloaty-output=//" | xargs -0 echo -e
- ${{ inputs.bloaty-args }}