-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathaction.yml
46 lines (43 loc) · 1.04 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
44
45
46
name: 'List Files Action'
description: 'List all matching files in specific path.'
author: "Mirko Felice"
inputs:
repo:
description: "Repository name where to search files"
required: true
ref:
description: "Branch or tag to checkout"
default: "master"
required: false
path:
description: "Path where searching files"
required: true
ext:
description: "File extension to match"
required: true
outputs:
paths:
value: ${{ steps.py.outputs.paths }}
description: "List of all matching files"
runs:
using: composite
steps:
- name: Checkout Repository
uses: actions/[email protected]
with:
repository: ${{ inputs.repo }}
ref: ${{ inputs.ref }}
- name: Setup Python
uses: actions/setup-python@v4
with:
python-version: '3.10'
- shell: bash
id: py
name: Execute Python
env:
INPUT_PATH: ${{ inputs.path }}
INPUT_EXT: ${{ inputs.ext }}
run: python ${{ github.action_path }}/main.py
branding:
icon: file
color: gray-dark