Skip to content

Releases: ActionCommons/read-properties

v1.0.1

29 Mar 06:47

Choose a tag to compare

New in this release:

  • Updated action name and packaging.

v1.0.0

26 Mar 07:20

Choose a tag to compare

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 .properties files in a single step using the files input
  • Filter outputs to specific keys using the properties input -- omit it to read everything
  • The same properties filter 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 .properties syntax: = 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.