-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathaction.yml
35 lines (33 loc) · 1 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
name: coverage badge js
description: "Generate coverage badge using Istanbul's JSON summary"
author: tj-actions
inputs:
path:
description: 'Path to the application'
required: true
default: "."
output_path:
description: 'Writes the coverage badge to the given path'
required: true
default: "coverage/badge.svg"
report_path:
description: 'Path to a coverage report file'
required: true
default: "coverage/coverage-summary.json"
runs:
using: 'composite'
steps:
- name: Generate coverage badge
run: |
bash $GITHUB_ACTION_PATH/entrypoint.sh
id: coverage-badge-js
shell: bash
env:
# INPUT_<VARIABLE_NAME> is not available in Composite run steps
# https://github.community/t/input-variable-name-is-not-available-in-composite-run-steps/127611
INPUT_PATH: ${{ inputs.path }}
INPUT_OUTPUT_PATH: ${{ inputs.output_path }}
INPUT_REPORT_PATH: ${{ inputs.report_path }}
branding:
icon: check-circle
color: white