-
Notifications
You must be signed in to change notification settings - Fork 2
/
action.yaml
40 lines (39 loc) · 1.04 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
---
name: 'File detection'
author: 'DovnarAlexander'
branding:
icon: file-plus
color: purple
description: 'Find files\directories by typical find wildcard and exits with the required code.'
inputs:
wildcard:
description: 'Find-like wildcard to find files\directories.'
required: true
type:
description: 'Type of find command. Supported values: f (file), d (directory), l (link), p (pipe), s (socket).'
default: f
required: false
exit_code_found:
description: 'Exit code for non-empty find result.'
default: 0
required: false
exit_code_not_found:
description: 'Exit code for empty find result.'
default: 1
required: false
base_path:
description: 'Base directory to find files in.'
default: ./
required: false
outputs:
found:
description: 'Found items (files, directories etc.)'
runs:
using: 'docker'
image: 'Dockerfile'
args:
- ${{ inputs.wildcard }}
- ${{ inputs.type }}
- ${{ inputs.exit_code_found }}
- ${{ inputs.exit_code_not_found }}
- ${{ inputs.base_path }}