This is a GitHub Action to retrieve a single property from a Java .properties files.
A matching action to change a property can be found here.
The path of the properties file to be modified. If it doesn't exist, the file will be created.
The property key to be modified. If the property doesn't exist, a new entry will be added to the file. Otherwise, it will be replaced in-line.
The property value that was read from the file.
- name: Get property
id: get-property
uses: dschanoeh/get-property@v1
with:
file: my.properties
property: foo
- name: Use value
run: |
echo "Value: ${{ steps.get-property.outputs.value }}"