This is a GitHub action to write to java .properties
files.
Note: It will work for all file-types that follow the key=value
pattern.
If you are also looking for an action that enables you to read values from
.properties
files use Read Properties action
Required The path to properties file to read.
Required The property or properties you want to write.
Required The value of the given property or properties, in the same order.
- name: Write value to Properties-file
uses: christian-draeger/[email protected]
with:
path: './src/main/resources/application.properties'
property: |
'the.key.of.the.first.property'
'the.key.of.the.second.property'
value: |
'first value'
'second value'
The scripts and documentation in this project are released under the MIT License