Releases: ActionCommons/read-properties
Releases · ActionCommons/read-properties
v1.0.1
New in this release:
- Updated action name and packaging.
v1.0.0
v1.0.0
Initial release of read-properties -- a GitHub Action that reads Java-style .properties files and exposes their key-value pairs as step outputs.
Features
- Read one or more
.propertiesfiles in a single step using thefilesinput - Filter outputs to specific keys using the
propertiesinput -- omit it to read everything - The same
propertiesfilter applies uniformly across all listed files - Automatic output name deduplication -- when two files share the same name, outputs are grouped as
config.*,config1.*,config2.*, and so on - Supports standard
.propertiessyntax:=and:separators,#and!comments, backslash line continuation, empty values, and values containing=
Usage
- name: Read properties
id: props
uses: ActionCommons/read-properties@v1
with:
files: config/app.properties
- name: Use a value
run: echo "${{ steps.props.outputs['app.version'] }}"See the README for the full input reference and more examples.