Repository navigation
Expand file tree
/
Copy pathaction.yml
More file actions
52 lines (48 loc) · 1.71 KB
/
Copy pathaction.yml
File metadata and controls
52 lines (48 loc) · 1.71 KB
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
47
48
49
50
51
52
#
# © 2026-present Action Commons (https://github.com/ActionCommons)
#
name: Read Properties by Action Commons
description: >
Reads one or more .properties files and exposes every key-value pair as a step
output in the form <filename>.<key>.
author: Action Commons (https://github.com/ActionCommons)
# https://feathericons.com - pick an icon that fits your action.
branding:
icon: file-text
color: blue
# ---------------------------------------------------------------------------
# Inputs
# ---------------------------------------------------------------------------
inputs:
files:
description: >
A newline-separated list of one or more .properties file paths to read.
required: true
properties:
description: >
A newline-separated list of property keys to read from each file. When
omitted, all properties are read.
required: false
# ---------------------------------------------------------------------------
# Outputs
# ---------------------------------------------------------------------------
#
# Outputs are set dynamically at runtime and cannot be enumerated statically.
#
# The output key format is: <stem>.<property-key>
#
# stem = filename without extension, e.g. "config" for config.properties
# property-key = the key as it appears in the .properties file
#
# When two files share the same stem the second receives a "1" suffix,
# the third a "2" suffix, and so on:
#
# steps.read.outputs['config.host'] ← first config.properties
# steps.read.outputs['config1.host'] ← second config.properties
#
# Access via bracket notation in expressions when the key contains a dot:
# ${{ steps.read.outputs['config.host'] }}
#
runs:
using: node24
main: dist/index.cjs