write-properties allows you to write key values to your .properties file on Any github platform e.g. MacOS, Linux, Windows
GitHub actions are a flexible way to automatically build your project. I have found working on several projects the need to change the version of the .properties file.
Make sure that you have
- a GitHub account with Actions enabled
- a project with a .properties file
Required The path to properties file to read.
Required The property you want to write.
The value of the given property.
Required The property you want to write.
- name: Write value from Properties-file
id: write_property
uses: Reedyuk/write-properties@latest
with:
path: './src/main/resources/application.properties'
property: 'the.key.of.the.property'
value: 'value'