-
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathaction.yml
39 lines (36 loc) · 1.06 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
name: Run depcheck
description: Analyze npm project dependencies.
author: tj-actions
inputs:
dir:
description: 'The directory to run [depcheck](https://github.com/depcheck/depcheck#readme)'
required: false
default: '.'
ignores:
description: 'Comma separated list of packages to ignore'
required: false
default: ''
version:
description: 'Version of [depcheck](https://github.com/depcheck/depcheck/tags)'
required: false
default: '1.4.3'
outputs:
exit_code:
description: 'depcheck exit code'
value: ${{ steps.depcheck.outputs.exit_code }}
runs:
using: 'composite'
steps:
- run: |
bash $GITHUB_ACTION_PATH/entrypoint.sh
id: depcheck
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_DIR: ${{ inputs.dir }}
INPUT_IGNORES: ${{ inputs.ignores }}
INPUT_VERSION: ${{ inputs.version }}
branding:
icon: check-square
color: white