-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathaction.yml
More file actions
28 lines (28 loc) · 832 Bytes
/
action.yml
File metadata and controls
28 lines (28 loc) · 832 Bytes
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: Generate Matrix
description: Sub-action to generate a matrix of stack-yamls
inputs:
working-directory:
description: "Working directory for run commands"
required: true
default: .
find-options:
description: "Arguments to find(1) stack-yaml files"
required: true
default: "-type f -maxdepth 1 -name 'stack*.yaml'"
outputs:
stack-yamls:
description: Version-sorted list of all files matching stack*.yaml
value: ${{ steps.generate.outputs.stack-yamls }}
runs:
using: composite
steps:
- id: generate
name: Generate
shell: bash
working-directory: ${{ inputs.working-directory }}
run: |
{
echo 'stack-yamls<<EOM'
find ${{ inputs.find-options }} -printf '"%f"\n' | sort -V | jq --slurp
echo 'EOM'
} >>"$GITHUB_OUTPUT"