forked from ReyahSolutions/matrix-git-generator
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathaction.yml
28 lines (28 loc) · 947 Bytes
/
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
name: 'Matrix Git generator'
description: 'A github action that can generate a matrix to run multiple jobs from git changes'
author: 'Reyah <[email protected]>'
inputs:
token:
description: 'Github access token'
required: false
default: ${{ github.token }}
base:
description: |
Git base reference, can be a branch name or a commit hash. The change list will be compared to the base.
Will default to the last commit of the current branch
required: false
default: ${{ github.ref }}
filters:
description: A list of filter to apply
required: true
outputs:
matrix:
description: An stringified array for each sub-directories that contain a file changes and that match the filters
empty:
description: Return a boolean to indicate if the matrix is empty or not, useful for skipping jobs based on that matrix
runs:
using: 'node12'
main: 'dist/index.js'
branding:
color: blue
icon: filter